public void ConnectToServer(IPEndPoint endPoint, GameObject serverEntry) { Debug.Log("Connecting to server: " + endPoint.ToString()); NUClient.Connect(endPoint.Address, (ushort)endPoint.Port); }
public void CreateNewServer() { NUServer.Start(NUUtilities.ListIPv4Addresses()[0]); NUClient.Connect(NUUtilities.ListIPv4Addresses()[0]); }
public void ConnectToServer() { Debug.Log("Connecting to server: " + ipAddressField.text + ":" + portField.text); NUClient.Connect(ipAddressField.text, ushort.Parse(portField.text)); }