Пример #1
0
        public void Setup(List <Scenes> scenesToKeep, List <Scenes> sceneDependsOn, Starter starter)
        {
            this.scenesToKeep.Clear();
            this.sceneDependsOn.Clear();

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

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

            Toolbox.Instance.StartCoroutine(_Setup(starter));
        }
Пример #2
0
        public void Setup(List <DataScene> scenesToKeep, List <DataScene> sceneDependsOn, Starter starter)
        {
            this.scenesToKeep.Clear();
            this.sceneDependsOn.Clear();

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

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

            Toolbox.Instance.StartCoroutine(_Setup(starter));
        }
 public void Setup(List <string> scenesToKeep, List <string> sceneDependsOn, Starter starter)
 {
     this.scenesToKeep   = scenesToKeep;
     this.sceneDependsOn = sceneDependsOn;
     Toolbox.Instance.StartCoroutine(_Setup(starter));
 }