avoid shadowing member

This commit is contained in:
vis2k 2019-02-26 09:02:02 +01:00
parent c7524cb7f1
commit 0cdaaecd3a

View File

@ -49,17 +49,17 @@ internal void SetHandlers(NetworkConnection conn)
conn.SetHandlers(handlers); conn.SetHandlers(handlers);
} }
public void Connect(string serverIp) public void Connect(string ip)
{ {
PrepareForConnect(); PrepareForConnect();
if (LogFilter.Debug) { Debug.Log("Client Connect: " + serverIp); } if (LogFilter.Debug) { Debug.Log("Client Connect: " + ip); }
string hostnameOrIp = serverIp; string hostnameOrIp = ip;
this.serverIp = hostnameOrIp; this.serverIp = hostnameOrIp;
connectState = ConnectState.Connecting; connectState = ConnectState.Connecting;
NetworkManager.singleton.transport.ClientConnect(serverIp); NetworkManager.singleton.transport.ClientConnect(ip);
// setup all the handlers // setup all the handlers
connection = new NetworkConnection(this.serverIp, clientId, 0); connection = new NetworkConnection(this.serverIp, clientId, 0);