19 lines
355 B
C#
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);
|
|
}
|
|
}
|