コード例 #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();
 }