using UnityEngine.UI; using ZXKFramework; namespace DongWuYiXue.DaoNiaoShu { public class TimePanel : UIBase { Text time; public override string GroupName => "TimePanel"; public override string Name => "TimePanel"; public override void Init(IUIManager uictrl) { base.Init(uictrl); time = transform.FindFirst("Time"); } public override void Show() { base.Show(); GameManager.Instance.timeCounterManager.StartTimeCounter(str => SetTime(str)); } public void SetTime(string value) { time.text = value; } } }