예제 #1
0
 public void Load(string file)
 {
     if (!IsLoaded)
     {
         Generators.Clear();
         var listItems = JsonConvert.DeserializeObject <List <GeneratorJsonData> >(Resources.Load <TextAsset>(file).text);
         listItems.ForEach(item => Generators.Add(item.id, new GeneratorData(item, GeneratorType.Normal)));
         IsLoaded = true;
     }
 }
예제 #2
0
 public void ClearGenerators()
 {
     Generators.Clear();
     generatorList.Clear();
 }
예제 #3
0
 public void Clear()
 {
     Generators.Clear();
 }