26 lines
680 B
C#
Raw Normal View History

2025-09-08 14:51:28 +08:00
using UnityEngine.UI;
using ZXKFramework;
namespace YiLiao.JingMaiLiuZhiZhen
{
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;
}
}
}