Files
ColorQuest/Assets/GUI Pro-CasualGame/Scripts/PanelCasualGame.cs
Ardella Malinda Sarastri 72b8b42a0b Initial commit
2025-07-10 17:06:42 +07:00

22 lines
518 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace LayerLab.CasualGame
{
public class PanelCasualGame : MonoBehaviour
{
[SerializeField] private GameObject[] otherPanels;
public void OnEnable()
{
for (int i = 0; i < otherPanels.Length; i++) otherPanels[i].SetActive(true);
}
public void OnDisable()
{
for (int i = 0; i < otherPanels.Length; i++) otherPanels[i].SetActive(false);
}
}
}