コード例 #1
0
 public void EndReplay()
 {
     this._state  = ReplayController.State.None;
     this._inGame = false;
     Task.Clear(ref this._dispatchTask);
     PvpUtils.GoHome();
 }
コード例 #2
0
ファイル: PvpStateBase.cs プロジェクト: whztt07/mobahero_src
        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
ファイル: PvpStateHome.cs プロジェクト: whztt07/mobahero_src
 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();
 }