public static void Init() { #if UNITY_EDITOR if (AbstractRes.SimulateAssetBundleInEditor) { AssetBundleExporterForSimulateMode.BuildDataTable(); } #endif AssetDataTable.Instance.Reset(); List <string> outResult = new List <string>(); FileMgr.Instance.GetFileInInner("asset_bindle_config.bin", outResult); foreach (var t in outResult) { Log.I("Init[ResMgr]: {0}", t); AssetDataTable.Instance.LoadFromFile(t); } AssetDataTable.Instance.SwitchLanguage("cn"); Log.I("Init[ResMgr]"); }
public void InitResMgr() { #if UNITY_EDITOR if (AbstractRes.SimulateAssetBundleInEditor) { AssetBundleExporterForSimulateMode.BuildDataTable(); } #endif AssetDataTable.Instance.Reset(); List <string> outResult = new List <string>(); FileMgr.Instance.GetFileInInner("asset_bindle_config.bin", outResult); for (int i = 0; i < outResult.Count; ++i) { Debug.Log("Init[ResMgr]" + outResult[i]); AssetDataTable.Instance.LoadFromFile(outResult[i]); } AssetDataTable.Instance.SwitchLanguage("cn"); Log.i("Init[ResMgr]"); }