|
@@ -1,7 +1,3 @@
|
|
|
-using System.Collections;
|
|
|
-using System.Collections.Generic;
|
|
|
-using UnityEngine;
|
|
|
-using UI.DressUp;
|
|
|
using FairyGUI;
|
|
|
using UI.ActivityAfternoonTea;
|
|
|
using UI.CommonGame;
|
|
@@ -55,6 +51,14 @@ namespace GFGGame
|
|
|
_ui.m_listSynthetic.numItems = _suitCfg.partsArr.Length;
|
|
|
RefreshTimeText();
|
|
|
_ui.m_txtTips.SetVar("name", _suitCfg.name).FlushVars();
|
|
|
+ Timers.inst.Add(1, 0, UpdateTime);
|
|
|
+ }
|
|
|
+
|
|
|
+ protected override void OnHide()
|
|
|
+ {
|
|
|
+ base.OnHide();
|
|
|
+
|
|
|
+ Timers.inst.Remove(UpdateTime);
|
|
|
}
|
|
|
|
|
|
private void OnClickBtnBack()
|
|
@@ -62,6 +66,11 @@ namespace GFGGame
|
|
|
ViewManager.GoBackFrom(typeof(ActivitySyntheticView).FullName);
|
|
|
}
|
|
|
|
|
|
+ private void UpdateTime(object param)
|
|
|
+ {
|
|
|
+ RefreshTimeText();
|
|
|
+ }
|
|
|
+
|
|
|
private void RefreshTimeText()
|
|
|
{
|
|
|
ActivityOpenCfg activityOpenCfg = ActivityOpenCfgArray.Instance.GetCfg(5005);
|