Exemple #1
0
 public static ConfigEntryUtill <T> Create()
 {
     if (customFile == null)
     {
         Debug.LogError("customFile is null!");
         return(null);
     }
     if (!SectionList.ContainsKey(sectionMain))
     {
         return(new ConfigEntryUtill <T>());
     }
     else
     {
         return(SectionList[sectionMain]);
     }
 }
Exemple #2
0
 public static ConfigEntryUtill Create(string section)
 {
     if (customFile == null)
     {
         Debug.LogError("customFile is null!");
         return(null);
     }
     //MyLog.LogDebug("ConfigEntryUtill.Create", section);
     if (!SectionList.ContainsKey(section))
     {
         return(new ConfigEntryUtill(section));
     }
     else
     {
         return(SectionList[section]);
     }
 }
Exemple #3
0
 public static ConfigEntryUtill Create(string section, params string[] keys)
 {
     if (customFile == null)
     {
         Debug.LogError("customFile is null!");
         return(null);
     }
     //MyLog.LogDebug("ConfigEntryUtill.Create", section, keys.Length);
     if (!SectionList.ContainsKey(section))
     {
         return(new ConfigEntryUtill(section, keys));
     }
     else
     {
         SectionList[section].Add(keys.ToList());
         return(SectionList[section]);
     }
 }