no need for extra variable

This commit is contained in:
vis2k 2019-02-26 09:02:37 +01:00
parent f1e3c6f8fd
commit 48e08bdd05

View File

@ -55,8 +55,7 @@ public void Connect(string ip)
if (LogFilter.Debug) { Debug.Log("Client Connect: " + ip); } if (LogFilter.Debug) { Debug.Log("Client Connect: " + ip); }
string hostnameOrIp = ip; serverIp = ip;
serverIp = hostnameOrIp;
connectState = ConnectState.Connecting; connectState = ConnectState.Connecting;
NetworkManager.singleton.transport.ClientConnect(ip); NetworkManager.singleton.transport.ClientConnect(ip);