NetworkClient.Connect made static

This commit is contained in:
vis2k 2019-03-25 13:23:06 +01:00
parent 080bf2eaf0
commit d1d006e6d7
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ internal static void SetHandlers(NetworkConnection conn)
conn.SetHandlers(handlers);
}
public void Connect(string ip)
public static void Connect(string ip)
{
if (LogFilter.Debug) Debug.Log("Client Connect: " + ip);

View File

@ -340,7 +340,7 @@ public NetworkClient StartClient()
}
if (LogFilter.Debug) Debug.Log("NetworkManager StartClient address:" + networkAddress);
client.Connect(networkAddress);
NetworkClient.Connect(networkAddress);
OnStartClient(client);
s_Address = networkAddress;