NetworkClient.Shutdown made static too. ShutdownAll made obsolete.

This commit is contained in:
vis2k 2019-03-22 13:56:43 +01:00
parent 1d94464023
commit 6e11429699
2 changed files with 4 additions and 3 deletions

View File

@ -320,7 +320,7 @@ internal static void UpdateClient()
singleton?.Update();
}
public void Shutdown()
public static void Shutdown()
{
if (LogFilter.Debug) Debug.Log("Shutting down client.");
singleton = null;
@ -328,9 +328,10 @@ public void Shutdown()
ClientScene.Shutdown();
}
[Obsolete("Call NetworkClient.Shutdown() instead. There is only one client.")]
public static void ShutdownAll()
{
singleton?.Shutdown();
Shutdown();
}
}
}

View File

@ -368,7 +368,7 @@ public void StopClient()
{
// only shutdown this client, not ALL clients.
client.Disconnect();
client.Shutdown();
NetworkClient.Shutdown();
client = null;
}