2026-04-21 가격창, 사운드
This commit is contained in:
19
Assets/Layer Lab/Scripts/PanelView.cs
Normal file
19
Assets/Layer Lab/Scripts/PanelView.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user