Ejemplo n.º 1
0
        public static ILevelProvider CreateProvider(string dataPath)
        {
            var defProvider = new DefLevelProvider();

            defProvider.SetDef(TestResources.Get(dataPath));
            return(defProvider);
        }
Ejemplo n.º 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);
            }
        }