public void LeaveLobby()
    {
        SteamMatchmaking.LeaveLobby(LobbyID);

        networkManager.StopServer();

        networkManager.StopHost();
        menuManager.DisplayLoading();
        menuManager.NavigateToMenu("Landing");
    }
Beispiel #2
0
 public void OnLobbySceneLoaded()
 {
     if (isHosting)
     {
         lobbyPanel.Show(() =>
         {
             ShowMainMenu();
             lobbyNetworkManager.StopHost();
         });
     }
     else
     {
         lobbyPanel.Show(() =>
         {
             ShowMainMenu();
             lobbyNetworkManager.StopClient();
         });
     }
 }
    public void CloseLobby()
    {
        networkManager.StopHost();

        menuManager.NavigateToMenu("Play Menu");
    }