public void EndReplay() { this._state = ReplayController.State.None; this._inGame = false; Task.Clear(ref this._dispatchTask); PvpUtils.GoHome(); }
private void OnBattleEnd(MobaMessage msg) { P2CBattleEndInfo probufMsg = msg.GetProbufMsg <P2CBattleEndInfo>(); PvpTeamInfo teamInfo = probufMsg.teamInfo; Singleton <PvpManager> .Instance.RoomInfo.WinTeam = new TeamType?(PvpProtocolTools.GroupToTeam((int)probufMsg.winGroup)); Singleton <PvpManager> .Instance.RoomInfo.BattleResult = teamInfo; this.OnAfterBattleEnd(probufMsg); AutoTestController.InvokeTestLogic(AutoTestTag.LeavePvp, delegate { PvpUtils.GoHome(); }, 1f); }
protected override void OnEnter() { base.OnEnter(); PvpMatchMgr.Instance.QuitMatch(false); if (!NetWorkHelper.Instance.GateReconnection.Available) { NetWorkHelper.Instance.GateReconnection.Begin(); } NetWorkHelper.Instance.DisconnectLobbyServer(); NetWorkHelper.Instance.DisconnectPvpServer(); ArenaModeView.ShowMatchingState(false); CtrlManager.CloseWindow(WindowID.PvpSelectHeroView); CtrlManager.CloseWindow(WindowID.PvpWaitView); PvpUtils.GoHome(); Singleton <PvpManager> .Instance.IsContinuedBattle = false; Singleton <MenuView> .Instance.UpdateFreeActive(); }