diff --git a/Mirror/Runtime/NetworkClient.cs b/Mirror/Runtime/NetworkClient.cs index 240b4013c..8e3006057 100644 --- a/Mirror/Runtime/NetworkClient.cs +++ b/Mirror/Runtime/NetworkClient.cs @@ -90,7 +90,7 @@ public NetworkClient(NetworkConnection conn) public void Connect(string serverIp, int serverPort) { - PrepareForConnect(false); + PrepareForConnect(); if (LogFilter.logDebug) { Debug.Log("Client Connect: " + serverIp + ":" + serverPort); } @@ -107,7 +107,7 @@ public void Connect(string serverIp, int serverPort) m_Connection.Initialize(m_ServerIp, m_ClientId, 0); } - void PrepareForConnect(bool usePlatformSpecificProtocols) + void PrepareForConnect() { SetActive(true); RegisterSystemHandlers(false);