From 602c4f8f1aa1e5737da2f1e92c9a890cdf0ea1da Mon Sep 17 00:00:00 2001 From: MrGadget Date: Sun, 4 Aug 2019 13:35:03 -0400 Subject: [PATCH] Simplify ClientChangeScene (#1003) --- Assets/Mirror/Runtime/NetworkManager.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkManager.cs b/Assets/Mirror/Runtime/NetworkManager.cs index 74cdbe718..cd263d19e 100644 --- a/Assets/Mirror/Runtime/NetworkManager.cs +++ b/Assets/Mirror/Runtime/NetworkManager.cs @@ -551,7 +551,7 @@ public void StopClient() if (!string.IsNullOrEmpty(offlineScene)) { // Must pass true or offlineScene will not be loaded - ClientChangeScene(offlineScene); + ClientChangeScene(offlineScene, LoadSceneMode.Single, LocalPhysicsMode.None); } CleanupNetworkIdentities(); } @@ -610,11 +610,6 @@ void CleanupNetworkIdentities() } } - void ClientChangeScene(string newSceneName) - { - ClientChangeScene(newSceneName, LoadSceneMode.Single, LocalPhysicsMode.None); - } - internal void ClientChangeScene(string newSceneName, LoadSceneMode sceneMode, LocalPhysicsMode physicsMode) { if (string.IsNullOrEmpty(newSceneName))