From a4adac8ae27fe415bc7ad1487ba9471ba8c9e6c6 Mon Sep 17 00:00:00 2001 From: "M. Fatih MAR" Date: Tue, 2 Mar 2021 14:20:35 +0000 Subject: [PATCH] fix: Shutdown() before Singleton = null on NetworkManager.OnDestroy() --- com.unity.multiplayer.mlapi/Runtime/Core/NetworkingManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.multiplayer.mlapi/Runtime/Core/NetworkingManager.cs b/com.unity.multiplayer.mlapi/Runtime/Core/NetworkingManager.cs index 4ae158ea3e..878cf12d7c 100644 --- a/com.unity.multiplayer.mlapi/Runtime/Core/NetworkingManager.cs +++ b/com.unity.multiplayer.mlapi/Runtime/Core/NetworkingManager.cs @@ -652,8 +652,8 @@ private void OnDestroy() { if (Singleton != null && Singleton == this) { - Singleton = null; Shutdown(); + Singleton = null; } }