Exemple #1
0
 public override void OnLobbyLeft(GalaxyID lobbyID, LobbyLeaveReason leaveReason)
 {
     if (leaveReason != LobbyLeaveReason.LOBBY_LEAVE_REASON_USER_LEFT)
     {
         GameObject.Find("PopUps").GetComponent <PopUps>().PopUpWithLoadSceneButton("Connection to lobby lost\nReason: " +
                                                                                    leaveReason, "Back");
     }
     matchmaking.CurrentLobbyID        = null;
     matchmaking.LobbyOwnerID          = null;
     GameManager.Instance.GameFinished = true;
     GalaxyManager.Instance.ShutdownNetworking();
     matchmaking.LobbyManagmentInGameListenersDispose();
     matchmaking.LobbyChatListenersDispose();
 }
 public override void OnLobbyLeft(GalaxyID lobbyID, LobbyLeaveReason leaveReason)
 {
     if (leaveReason != LobbyLeaveReason.LOBBY_LEAVE_REASON_CONNECTION_LOST)
     {
         if (!matchmaking.leftOnMyOwn)
         {
             HostLeftLobby();
         }
         LobbyLeft(lobbyID);
     }
     else
     {
         Debug.LogWarning("OnLobbyLeft failure");
     }
 }
Exemple #3
0
 public override void OnLobbyLeft(GalaxyID lobbyID, LobbyLeaveReason leaveReason)
 {
     if (leaveReason != LobbyLeaveReason.LOBBY_LEAVE_REASON_USER_LEFT)
     {
         GameObject.Find("PopUps").GetComponent <PopUps>().PopUpWithClosePopUpsButton("Host left the lobby", "Back");
     }
     matchmaking.CurrentLobbyID = null;
     matchmaking.LobbyOwnerID   = null;
     matchmaking.lobbyName      = "";
     friends.SetRichPresence("connect", null);
     GameObject.Find("OnlineChat").GetComponent <ChatController>().DisposeEntries();
     GameObject.Find("MainMenu").GetComponent <MainMenuController>().SwitchMenu(MainMenuController.MenuEnum.Online);
     matchmaking.LobbyManagmentMainMenuListenersDispose();
     matchmaking.LobbyChatListenersDispose();
 }
 public override void OnLobbyLeft(GalaxyID lobbyID, LobbyLeaveReason leaveReason)
 {
     if (leaveReason != LobbyLeaveReason.LOBBY_LEAVE_REASON_CONNECTION_LOST)
     {
         if (!matchmaking.leftOnMyOwn)
         {
             if (!GameObject.Find("Online2PlayerGameEnd"))
             {
                 HostLeftLobby();
             }
         }
         LobbyLeft(lobbyID);
     }
     else
     {
         Debug.LogWarning("OnLobbyLeft failure " + leaveReason);
     }
 }
Exemple #5
0
 public override void OnLobbyLeft(GalaxyID lobbyID, LobbyLeaveReason leaveReason)
 {
     callback(lobbyID, leaveReason);
 }