コード例 #1
0
        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));
            }
        }
コード例 #2
0
        public void LoadByApplication()
        {
            ActiveScene = new SceneInformation(Application.loadedLevel, Application.loadedLevelName);

            LoadedScenes.Add(new SceneInformation(Application.loadedLevel, Application.loadedLevelName));
        }