mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkClient.Shutdown made static too. ShutdownAll made obsolete.
This commit is contained in:
parent
1d94464023
commit
6e11429699
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -368,7 +368,7 @@ public void StopClient()
|
||||
{
|
||||
// only shutdown this client, not ALL clients.
|
||||
client.Disconnect();
|
||||
client.Shutdown();
|
||||
NetworkClient.Shutdown();
|
||||
client = null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user