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); } }
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); } }
public void BackToHall() { HallUtility.GameOver(); }
public void GameOver() { HallUtility.GameOver(); }
public void Handle(SimpleProto data) { HallUtility.GameOver(); }
private void YesCB() { ReconnectShow = false; HallUtility.GameOver(); }
public void OnGameOver() { HallUtility.GameOver(); _logger.InfoFormat("OnGameOver..."); }