示例#1
0
        void ChangeScenes(SceneState <Scene> state)
        {
            foreach (var scene in state.Removals(SceneUtil.GetActiveScenes <Scene>()))
            {
                StartCoroutine(SceneUtil.Remove(scene.ToString()));
            }

            foreach (var scene in state.Additionals(SceneUtil.GetActiveScenes <Scene>()))
            {
                StartCoroutine(SceneUtil.Add(scene.ToString()));
            }
        }