Files
Ultimate-Fishing-Simulator-…/Assets/Scripts/Assembly-CSharp/LayerLab/CasualGame/PanelView.cs
2026-03-04 09:37:33 +08:00

27 lines
427 B
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(value: true);
}
}
public void OnDisable()
{
for (int i = 0; i < otherPanels.Length; i++)
{
otherPanels[i].SetActive(value: false);
}
}
}
}