예제 #1
0
 public void EndReplay()
 {
     this._state  = ReplayController.State.None;
     this._inGame = false;
     Task.Clear(ref this._dispatchTask);
     PvpUtils.GoHome();
 }
예제 #2
0
        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);
        }
예제 #3
0
 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();
 }