private void ConfirmJudgePause(CUIEvent evt) { PauseControl pauseControl = Singleton <CBattleSystem> .GetInstance().pauseControl; if (pauseControl != null && pauseControl.EnablePause && Singleton <WatchController> .GetInstance().IsRunning) { pauseControl.RequestPause(true); } }
private void OnClickPlay(CUIEvent evt) { PauseControl pauseControl = Singleton <CBattleSystem> .GetInstance().pauseControl; if (pauseControl != null && pauseControl.EnablePause) { if (Singleton <WatchController> .GetInstance().IsRunning) { Singleton <CUIManager> .GetInstance().OpenMessageBoxWithCancel(Singleton <CTextManager> .GetInstance().GetText("confirmJudgePause"), enUIEventID.Watch_JudgePause, enUIEventID.None, false); } else { pauseControl.RequestPause(false); } } else { Singleton <WatchController> .GetInstance().IsRunning = !Singleton <WatchController> .GetInstance().IsRunning; } this.ValidatePlayBtnState(); }