Example #1
0
 public void ConnectToHost()
 {
     if (chosenHost != null)
     {
         networkScript.ConnectToServer(chosenHost);
     }
 }
Example #2
0
    public void Connect()
    {
        Debug.Log($"The connect button was pushed. The IP address Entered was {ipAddress}");

        network.port = portNum;
        network.host = false;
        network.ip   = ipAddress;
        network.ConnectToServer();
        waitForConnection();
    }