private void HandleClientDisconnected() { SetErrorMessage("Disconnected!", Color.red); joinLobbyButton.interactable = true; menuManager.NavigateToMenu("Join Lobby"); networkManager.StopClient(); // NEEDED? }
public void JoinServer(string ip) { ipAddress = ip; infoPanel.Display("Connecting to " + ip, "Cancel", () => { lobbyNetworkManager.StopClient(); }); lobbyNetworkManager.JoinServer(ip); //Change to lobbypanel //DisplayIsConnecting(); }