26 lines
678 B
C#
26 lines
678 B
C#
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<Text>("Time");
|
|
}
|
|
public override void Show()
|
|
{
|
|
base.Show();
|
|
GameManager.Instance.timeCounterManager.StartTimeCounter(str => SetTime(str));
|
|
}
|
|
public void SetTime(string value)
|
|
{
|
|
time.text = value;
|
|
}
|
|
}
|
|
}
|