mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
avoid shadowing member
This commit is contained in:
parent
c7524cb7f1
commit
0cdaaecd3a
@ -49,17 +49,17 @@ internal void SetHandlers(NetworkConnection conn)
|
||||
conn.SetHandlers(handlers);
|
||||
}
|
||||
|
||||
public void Connect(string serverIp)
|
||||
public void Connect(string ip)
|
||||
{
|
||||
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;
|
||||
|
||||
connectState = ConnectState.Connecting;
|
||||
NetworkManager.singleton.transport.ClientConnect(serverIp);
|
||||
NetworkManager.singleton.transport.ClientConnect(ip);
|
||||
|
||||
// setup all the handlers
|
||||
connection = new NetworkConnection(this.serverIp, clientId, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user