20 lines
389 B
C#
20 lines
389 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class UIController : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private List<GameObject> _panels = new List<GameObject>();
|
|
|
|
public void ShowMenu()
|
|
{
|
|
_panels.ForEach(x => x.SetActive(true));
|
|
}
|
|
|
|
public void HideMenu()
|
|
{
|
|
_panels.ForEach(x => x.SetActive(false));
|
|
}
|
|
}
|