metahunt/Assets/GUI PRO Kit - Sci-Fi/Scripts/PanelSciFiSurvival.cs
2024-02-11 13:53:18 +05:30

22 lines
510 B
C#

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