2021-08-02 16:22:16 +03:00

22 lines
500 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace LayerLab
{
public class Panel : 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);
}
}
}