Beispiel #1
0
        protected virtual void OnAfterBattleEnd(P2CBattleEndInfo info)
        {
            Singleton <PvpManager> .Instance.AbandonGame(PvpErrorCode.UnknowError);

            Singleton <PvpManager> .Instance.RoomInfo.WinTeam      = null;
            Singleton <PvpManager> .Instance.RoomInfo.BattleResult = null;
            NetWorkHelper.Instance.DisconnectPvpServer();
        }
Beispiel #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);
        }
Beispiel #3
0
 protected override void OnAfterBattleEnd(P2CBattleEndInfo info)
 {
     PvpStateManager.Instance.ChangeState(new PveStateFinish());
 }