2025-09-19 17:28:05 +08:00
|
|
|
using UnityEngine.UI;
|
|
|
|
|
using ZXKFramework;
|
2025-09-22 17:41:04 +08:00
|
|
|
namespace YiLiao.XinFeiTingZhen
|
2025-09-19 17:28:05 +08:00
|
|
|
{
|
|
|
|
|
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<Text>("Time");
|
|
|
|
|
}
|
|
|
|
|
public override void Show()
|
|
|
|
|
{
|
|
|
|
|
base.Show();
|
|
|
|
|
GameManager.Instance.timeCounterManager.StartTimeCounter(str => SetTime(str));
|
|
|
|
|
}
|
|
|
|
|
public void SetTime(string value)
|
|
|
|
|
{
|
|
|
|
|
time.text = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|