public static LocalCfg GetSingleton() { if (mInstance == null) { mInstance = new LocalCfg(); } return(mInstance); }
public static T IsAssetLegal <T>(TextAsset varTextAsset) { if (varTextAsset == null) { return(default(T)); } T t = LocalCfg.GetSingleton().DeserializeObjFromTextAsset <T>(varTextAsset); if (t == null) { UnityEngine.Object.DestroyImmediate(varTextAsset); return(default(T)); } return(t); }