fix: overlapping EventSystems for UI Canvases

This commit is contained in:
Jakob Feldmann 2024-04-19 21:28:35 +02:00
parent 8659456fae
commit f2d1fbfe5b
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ public class MatchEndMenu : MonoBehaviour
Canvas.enabled = false;
MenuButtons.SetActive(false);
eventSystem = UIEventSystem.GetComponent<EventSystem>();
UIEventSystem.SetActive(false);
}
public void Show(Transform transform)

View File

@ -26,6 +26,7 @@ public class PauseMenu : MonoBehaviour
Canvas.enabled = false;
PauseMenuButtons.SetActive(false);
eventSystem = UIEventSystem.GetComponent<EventSystem>();
UIEventSystem.SetActive(false);
}
public void Show(Transform transform)