예제 #1
0
        private void ConfirmJudgePause(CUIEvent evt)
        {
            PauseControl pauseControl = Singleton <CBattleSystem> .GetInstance().pauseControl;

            if (pauseControl != null && pauseControl.EnablePause && Singleton <WatchController> .GetInstance().IsRunning)
            {
                pauseControl.RequestPause(true);
            }
        }
예제 #2
0
        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();
        }