From 0cdaaecd3a322b4e6f5ea08e7b9a19a1e3efad66 Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 26 Feb 2019 09:02:02 +0100 Subject: [PATCH] avoid shadowing member --- Assets/Mirror/Runtime/NetworkClient.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkClient.cs b/Assets/Mirror/Runtime/NetworkClient.cs index 0a90fb565..fb7d24008 100644 --- a/Assets/Mirror/Runtime/NetworkClient.cs +++ b/Assets/Mirror/Runtime/NetworkClient.cs @@ -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);