using System; using UnityEngine; using XMainClient.UI.UICommon; using XUpdater; using XUtliPoolLib; namespace XMainClient { internal class XCommandMove : XBaseCommand { private uint _time = 0u; public override bool Execute() { this._time = XSingleton.singleton.SetTimer(this._cmd.interalDelay, new XTimerMgr.ElapsedEventHandler(this.ShowVT), null); base.publicModule(); return true; } protected void ShowVT(object o) { this._startTime = Time.time; base.SetButtomText(); DlgBase.singleton.ShowPanel(true, new Vector2(200f, 50f)); bool pause = this._cmd.pause; if (pause) { XSingleton.singleton.Pause = true; } } public override void Stop() { DlgBase.singleton.ShowPanel(false, Vector2.zero); bool flag = this._time > 0u; if (flag) { XSingleton.singleton.KillTimer(this._time); this._time = 0u; } base.DestroyButtomText(); base.DestroyOverlay(); XSingleton.singleton.Pause = false; XSingleton.singleton.Exculsive = false; } } }