コード例 #1
0
        void OnBackHallETClick(BaseEventData data)
        {
            if (menuUiAdapter != null)
            {
                _viewModel.rootActiveSelf = false;
                menuUiAdapter.UnRegisterKeyReceive(keyReceive);
                menuUiAdapter.UnRegisterPointerReceive(pointerReceiver);


                string title      = "";
                bool   isOverGame = menuUiAdapter.PlayStaue == (int)EPlayerLifeState.Dead || menuUiAdapter.WarVictory;

                title = isOverGame ? I2.Loc.ScriptLocalization.client_common.word13 : I2.Loc.ScriptLocalization.client_common.word14;

                string yesText = I2.Loc.ScriptLocalization.client_common.word15;
                Action yesCB   = () =>
                {
                    HallUtility.GameOver();
                };
                Action noCB = () =>
                {
                    _viewModel.rootActiveSelf = true;
                    menuUiAdapter.RegisterKeyReceive(keyReceive);
                    menuUiAdapter.RegisterPointerReceive(pointerReceiver);
                    menuUiAdapter.SetCrossVisible(false);
                };

                string noText = I2.Loc.ScriptLocalization.client_common.word16;

                menuUiAdapter.ShowNoticeWindow(title, yesCB, noCB, yesText, noText);
            }
        }
コード例 #2
0
ファイル: ClientRoom.cs プロジェクト: Hengle/CsharpCode
        public void Update()
        {
            try
            {
                if (_isDisposed)
                {
                    return;
                }

                if (_isDisconnected)
                {
                    HallUtility.GameOver();
                }
                else
                {
                    SingletonManager.Get <DurationHelp>().ProfileStart(CustomProfilerStep.Room);
                    var sessionObjects = _contexts.session.clientSessionObjects;

                    sessionObjects.MessageDispatcher.DriveDispatch();
                    StepExecuteManager.Instance.Update();
                    _clientSessionStateMachine.Update();
                }
            }
            finally
            {
                SingletonManager.Get <DurationHelp>().ProfileEnd(CustomProfilerStep.Room);
            }
        }
コード例 #3
0
 public void BackToHall()
 {
     HallUtility.GameOver();
 }
コード例 #4
0
 public void GameOver()
 {
     HallUtility.GameOver();
 }
コード例 #5
0
 public void Handle(SimpleProto data)
 {
     HallUtility.GameOver();
 }
コード例 #6
0
ファイル: PingSystem.cs プロジェクト: yangfan111/CsharpCode
 private void YesCB()
 {
     ReconnectShow = false;
     HallUtility.GameOver();
 }
コード例 #7
0
 public void OnGameOver()
 {
     HallUtility.GameOver();
     _logger.InfoFormat("OnGameOver...");
 }