diff --git a/Scripts/UI/Common/UIHandler.cs b/Scripts/UI/Common/UIHandler.cs index 5162d73..ae588a8 100644 --- a/Scripts/UI/Common/UIHandler.cs +++ b/Scripts/UI/Common/UIHandler.cs @@ -60,17 +60,20 @@ public partial class UIHandler : Control public void HandleMenuButton() { + if(GameData.survival.isDead) return; OpenUIElement(menu); GameData.isPaused = menu.Visible || options.Visible; } public void HandleMenu() { + if(GameData.survival.isDead) return; HandleMenuButton(); } public void ShowOptions() { + if(GameData.survival.isDead) return; menu.Hide(); OpenUIElement(options); GameData.isPaused = options.Visible; @@ -78,12 +81,14 @@ public partial class UIHandler : Control public void HandleMapButton() { + if(GameData.survival.isDead) return; OpenUIElement(map); if (map.Visible) map.ShowMap(); } public void HandleRobotListButton() { + if(GameData.survival.isDead) return; receivedRobotFollowSignal = false; receivedRobotJumpSignal = false; OpenUIElement(robotList); @@ -91,11 +96,13 @@ public partial class UIHandler : Control public void HandleInventoryButton() { + if(GameData.survival.isDead) return; OpenUIElement(inventory); } public void HandleResearchButton() { + if(GameData.survival.isDead) return; OpenUIElement(researchList); if (researchList.Visible) researchList.SetupGraph(); }