CapersProject/Assets/Icons - Picto Total Pack/Scripts/PanelPictoTotalPack.cs

22 lines
526 B
C#
Raw Normal View History

2024-06-03 18:26:03 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace LayerLab.PictoTotalPack
{
public class PanelPictoTotalPack : 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);
}
}
}