Unity SettingModule, with Resources.Load in product, with File.Read in editor
Inheritance: SettingModuleBase
Example #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));
 }
Example #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);
 }