MiniGame-PushPush/Assets/GUI PRO Kit - Casual Game/Scripts/PanelCasualGame.cs
villaingames fc0b8b9299 에셋 추가
- UI 에셋 (사용할 부분만 옮겨서 정리 필요)
- sky 에셋
2023-10-09 20:04:31 +09: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);
}
}
}