Removed the +1 in MultiSceneNetManager

This commit is contained in:
MrGadget1024 2020-11-01 19:12:25 -05:00
parent 7560a4c274
commit 3aad58a95f

View File

@ -71,7 +71,7 @@ IEnumerator ServerLoadSubScenes()
for (int index = 1; index <= instances; index++) for (int index = 1; index <= instances; index++)
{ {
yield return SceneManager.LoadSceneAsync(gameScene, new LoadSceneParameters { loadSceneMode = LoadSceneMode.Additive, localPhysicsMode = LocalPhysicsMode.Physics3D }); yield return SceneManager.LoadSceneAsync(gameScene, new LoadSceneParameters { loadSceneMode = LoadSceneMode.Additive, localPhysicsMode = LocalPhysicsMode.Physics3D });
subScenes.Add(SceneManager.GetSceneAt(index + 1)); subScenes.Add(SceneManager.GetSceneAt(index));
} }
subscenesLoaded = true; subscenesLoaded = true;