示例#1
0
    private void HandleClientDisconnected()
    {
        SetErrorMessage("Disconnected!", Color.red);

        joinLobbyButton.interactable = true;

        menuManager.NavigateToMenu("Join Lobby");

        networkManager.StopClient(); // NEEDED?
    }
示例#2
0
    public void JoinServer(string ip)
    {
        ipAddress = ip;
        infoPanel.Display("Connecting to " + ip, "Cancel", () => { lobbyNetworkManager.StopClient(); });
        lobbyNetworkManager.JoinServer(ip);

        //Change to lobbypanel

        //DisplayIsConnecting();
    }