21 lines
456 B
C#
21 lines
456 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace Script.UI
|
|||
|
{
|
|||
|
public class UIComponent : MonoBehaviour
|
|||
|
{
|
|||
|
[SerializeField] private List<PanelBase> list = new List<PanelBase>();
|
|||
|
|
|||
|
private void Awake()
|
|||
|
{
|
|||
|
foreach (var panelBase in list)
|
|||
|
{
|
|||
|
panelBase.gameObject.SetActive(false);
|
|||
|
}
|
|||
|
|
|||
|
UIManager.Instance.InitPanel(list);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|