public void Update() { MapWrapper mapLogic = Singleton <BattleLogic> .GetInstance().mapLogic; if (!mapLogic.DoesSoldierOverNum()) { SoldierRegion soldirRegion = mapLogic.GetSoldirRegion(); DebugHelper.Assert(soldirRegion != null, "region 不能为空"); if (soldirRegion != null && soldirRegion.isStartup) { int num = (int)(Time.deltaTime * 1000f); this._countdown -= num; if (this._countdown <= 0) { this._countdown = 0; } } } if (this._countdownText != null && this._countdownText.gameObject.activeSelf) { int num2 = 0; int num3 = 0; this.CalcMinSec(this._countdown, out num3, out num2); this._countdownText.set_text(string.Format("{0:D2} : {1:D2}", num2, num3)); } }