Exemplo n.º 1
0
        public void Setup(List <SceneField> scenesToKeep, List <SceneField> sceneDependsOn, Starter starter)
        {
            this.scenesToKeep.Clear();
            this.sceneDependsOn.Clear();

            for (var i = 0; i < scenesToKeep.Count; i++)
            {
                this.scenesToKeep.Add(scenesToKeep[i].SceneName);
            }

            for (var i = 0; i < sceneDependsOn.Count; i++)
            {
                this.sceneDependsOn.Add(sceneDependsOn[i].SceneName);
            }

            Toolbox.Instance.StartCoroutine(_Setup(starter));
        }