Exemple #1
0
    public void JoinGame()
    {
        string ipAddress = ipAddressInputField.text;

        networkManager.networkAddress = ipAddress;
        networkManager.StartClient();
        joinButton.interactable = false;
    }
Exemple #2
0
 public void onJoinButton()
 {
     manager.networkAddress = ipField.text;
     if (!NetworkClient.active)
     {
         manager.StartClient();
     }
 }
 public void Join()
 {
     if (networkDiscoveryHUD.discoveredServers.Count != 0)
     {
         networkManager.StartClient(serverResponse.uri);
         //networkDiscovery.AdvertiseServer();
         isPressed = true;
     }
     else
     {
         networkLobby.StartClient();
         isPressed = true;
     }
 }