mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Simplify ClientChangeScene (#1003)
This commit is contained in:
parent
b9951f9ca7
commit
602c4f8f1a
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user