Simplify ClientChangeScene (#1003)

This commit is contained in:
MrGadget 2019-08-04 13:35:03 -04:00 committed by vis2k
parent b9951f9ca7
commit 602c4f8f1a

View File

@ -551,7 +551,7 @@ public void StopClient()
if (!string.IsNullOrEmpty(offlineScene)) if (!string.IsNullOrEmpty(offlineScene))
{ {
// Must pass true or offlineScene will not be loaded // Must pass true or offlineScene will not be loaded
ClientChangeScene(offlineScene); ClientChangeScene(offlineScene, LoadSceneMode.Single, LocalPhysicsMode.None);
} }
CleanupNetworkIdentities(); 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) internal void ClientChangeScene(string newSceneName, LoadSceneMode sceneMode, LocalPhysicsMode physicsMode)
{ {
if (string.IsNullOrEmpty(newSceneName)) if (string.IsNullOrEmpty(newSceneName))