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(); }
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 OnAfterBattleEnd(P2CBattleEndInfo info) { PvpStateManager.Instance.ChangeState(new PveStateFinish()); }