using UnityEngine; public class UIHandler : MonoBehaviour { public void ShowUI(GameObject shownUI) { shownUI.SetActive(true); } public void HideUI(GameObject hiddenUI) { hiddenUI.SetActive(false); } public void ToggleUI(GameObject toggledUI) { toggledUI.SetActive(!toggledUI.activeSelf); } }