MarisaMagicalStudy/Assets/Scripts/UIHandler.cs
2026-03-21 23:16:44 -07:00

19 lines
355 B
C#

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);
}
}