using System; using UILib; using UnityEngine; using XUpdater; using XUtliPoolLib; namespace XMainClient.Tutorial.Command { internal class XCommandEmpty : XBaseCommand { private uint _time = 0u; public override bool Execute() { this._startTime = Time.time; bool flag = this._cmd.interalDelay > 0f; if (flag) { base.SetOverlay(); } this._time = XSingleton.singleton.SetTimer(this._cmd.interalDelay, new XTimerMgr.ElapsedEventHandler(this.ShowFinger), null); base.publicModule(); return true; } protected void ShowFinger(object o) { base.SetOverlay(); base.SetAilin(); bool flag = string.IsNullOrEmpty(this._cmd.ailinText) && XBaseCommand._Overlay != null; if (flag) { IXUISprite ixuisprite = XBaseCommand._Overlay.transform.Find("Left").GetComponent("XUISprite") as IXUISprite; ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMouseClick)); } bool pause = this._cmd.pause; if (pause) { XSingleton.singleton.Pause = true; } } protected override void OnMouseClick(IXUISprite sp) { base.OnMouseClick(sp); bool flag = string.IsNullOrEmpty(this._cmd.ailinText); if (flag) { XSingleton.singleton.OnCmdFinished(); } } public override void Stop() { bool flag = this._time > 0u; if (flag) { XSingleton.singleton.KillTimer(this._time); this._time = 0u; } base.DestroyText(); base.DestroyAilin(); base.DestroyOverlay(); XSingleton.singleton.Pause = false; XSingleton.singleton.NoforceClick = false; } } }