示例#1
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();
 }
示例#2
0
 protected override void OnEnter()
 {
     base.OnEnter();
     ArenaModeView.ShowMatchingState(true);
     CtrlManager.CloseWindow(WindowID.PvpSelectHeroView);
 }