2023-07-24 16:38:13 +03:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class UIController : MonoBehaviour
|
|
|
|
{
|
|
|
|
[SerializeField]
|
2023-07-25 12:23:15 +03:00
|
|
|
private List<GameObject> _panels = new List<GameObject>();
|
2023-07-24 16:38:13 +03:00
|
|
|
|
|
|
|
public void ShowMenu()
|
|
|
|
{
|
2023-07-25 12:23:15 +03:00
|
|
|
_panels.ForEach(x => x.SetActive(true));
|
2023-07-24 16:38:13 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public void HideMenu()
|
|
|
|
{
|
2023-07-25 12:23:15 +03:00
|
|
|
_panels.ForEach(x => x.SetActive(false));
|
2023-07-24 16:38:13 +03:00
|
|
|
}
|
|
|
|
}
|