26 lines
680 B
C#
26 lines
680 B
C#
|
|
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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|