ProjectDDD/Assets/External/Layer Lab/Scripts/PanelView.cs
2025-07-07 19:25:56 +09:00

20 lines
452 B (Stored with Git LFS)
C#

using UnityEngine;
namespace LayerLab.CasualGame
{
public class PanelView : 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);
}
}
}