Beispiel #1
0
        public static ILevelProvider CreateProvider(string dataPath)
        {
            var defProvider = new DefLevelProvider();

            defProvider.SetDef(TestResources.Get(dataPath));
            return(defProvider);
        }
Beispiel #2
0
        public void Construct()
        {
            var levels = Resources.LoadAll <TextAsset>("defs/levels");

            foreach (var levelSource in levels)
            {
                var level = new DefLevelProvider();
                level.SetDef(levelSource.text);
                availableLevels.Add(level);
            }
        }