add ui pack

This commit is contained in:
2024-08-31 18:56:04 +02:00
parent fb7da37a5a
commit f690fb53c8
9845 changed files with 2990754 additions and 64 deletions

View File

@@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace LayerLab.CasualGame
{
public class PanelView : 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);
}
}
}