private void LoadResConifg() { if (mResConfig == null) { string path = string.Format("Assets/{0}/{1}/ResConfig/ResConfig.asset", Paths.GameResRoot, mType); mResConfig = UnityEditor.AssetDatabase.LoadAssetAtPath <ResourcesConfig>(path); mResConfig.FormatDic(); } }
private void LoadResConifg() { if (mResConfig == null) { string path = string.Format("{0}/resconfig.{1}", mType, Def.AssetBundleSuffix); AssetBundle res = LoadABFile(path); mResConfig = res.LoadAsset <ResourcesConfig>("resconfig"); mResConfig.FormatDic(); res.Unload(true); } }