public void StartClient()
{
host = ipAddressInput.text;
if (string.IsNullOrEmpty(host.Trim()))
{
Debug.Log("No ip address provided to connect to");
return;
}
socket = Networking.Connect(host, (ushort)port, protocolType, IsWinRT, useNatHolePunching);
if (!socket.Connected)
{
socket.ConnectTimeout = 5000;
socket.connectTimeout += ConnectTimeout;
}
#if !NETFX_CORE
if (socket is CrossPlatformUDP)
((CrossPlatformUDP)socket).networkLatencySimulationTime = networkLatencySimulationTime;
#endif
Go();
}