public void LoadBySceneManager() { var activeScene = SceneManager.GetActiveScene(); ActiveScene = new SceneInformation(activeScene.buildIndex, activeScene.name); for (int i = 0; i < SceneManager.sceneCount; i++) { var scene = SceneManager.GetSceneAt(i); LoadedScenes.Add(new SceneInformation(scene.buildIndex, scene.name)); } }
public void LoadByApplication() { ActiveScene = new SceneInformation(Application.loadedLevel, Application.loadedLevelName); LoadedScenes.Add(new SceneInformation(Application.loadedLevel, Application.loadedLevelName)); }