using System.Collections; using System.Collections.Generic; using UnityEngine; using TcgEngine.Client; namespace TcgEngine.UI { public class AdventurePanel : UIPanel { private List level_uis = new List(); private static AdventurePanel instance; protected override void Awake() { base.Awake(); instance = this; } protected override void Start() { base.Start(); level_uis.AddRange(GetComponentsInChildren()); } private void RefreshLevels() { foreach (LevelUI level in level_uis) { level.RefreshLevel(); } } public override void Show(bool instant = false) { base.Show(instant); RefreshLevels(); } public static AdventurePanel Get() { return instance; } } }