This commit is contained in:
JohnCorby 2023-02-10 20:24:29 -08:00
parent 8609f5baf0
commit b26832f65b

View File

@ -72,6 +72,7 @@ internal class TimeSyncUI : MonoBehaviour, IAddComponentOnStart
Canvas.willRenderCanvases += OnWillRenderCanvases;
// silly hack that shouldnt be in the ui component but oh well
// TODO may have to wait a frame cuz Locator?
Locator.GetPlayerTransform().GetComponent<PlayerResources>()._invincible = true;
Locator.GetDeathManager()._invincible = true;
var shipTransform = Locator.GetShipTransform();
@ -89,6 +90,7 @@ internal class TimeSyncUI : MonoBehaviour, IAddComponentOnStart
Canvas.willRenderCanvases -= OnWillRenderCanvases;
// silly hack that shouldnt be in the ui component but oh well
// TODO may have to wait a frame cuz Locator?
Locator.GetPlayerTransform().GetComponent<PlayerResources>()._invincible = false;
Locator.GetDeathManager()._invincible = false;
var shipTransform = Locator.GetShipTransform();