Initial commit
This commit is contained in:
21
Assets/GUI Pro-CasualGame/Scripts/PanelCasualGame.cs
Normal file
21
Assets/GUI Pro-CasualGame/Scripts/PanelCasualGame.cs
Normal file
@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user