mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
nre
This commit is contained in:
parent
0680506ed1
commit
87dfaccfee
@ -99,7 +99,11 @@ public static Action<NetworkConnection, Exception> OnErrorEvent
|
||||
/// <summary>Shuts down the server and disconnects all clients</summary>
|
||||
// RuntimeInitializeOnLoadMethod -> fast playmode without domain reload
|
||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
|
||||
public static void Shutdown() => NetworkServerComponent.singleton.Shutdown();
|
||||
public static void Shutdown()
|
||||
{
|
||||
if (NetworkServerComponent.singleton != null)
|
||||
NetworkServerComponent.singleton.Shutdown();
|
||||
}
|
||||
|
||||
// connections /////////////////////////////////////////////////////////
|
||||
/// <summary>Add a connection and setup callbacks. Returns true if not added yet.</summary>
|
||||
|
Loading…
Reference in New Issue
Block a user