Unity SettingModule, with Resources.Load in product, with File.Read in editor
Наследование: SettingModuleBase
Пример #1
0
 /// <summary>
 /// Quick method to get TableFile from instance
 /// </summary>
 /// <param name="path"></param>
 /// <param name="useCache"></param>
 /// <returns></returns>
 public static TableFile Get(string path, bool useCache = true)
 {
     if (_instance == null)
     {
         _instance = new SettingModule();
     }
     return(_instance.GetTableFile(path, useCache));
 }
Пример #2
0
 /// <summary>
 /// Quick method to get TableFile from instance
 /// </summary>
 /// <param name="path"></param>
 /// <param name="useCache"></param>
 /// <returns></returns>
 public static TableFile Get(string path, bool useCache = true)
 {
     if (_instance == null)
         _instance = new SettingModule();
     return _instance.GetTableFile(path, useCache);
 }