Esempio n. 1
0
 public void Initialize(Action <string> loadFailed = null)
 {
     AssetLoader.useDynamicLoader = true;
     this.LoadFailed = loadFailed;
     if (Application.get_isEditor())
     {
         if (Directory.Exists(PathSystem.GetEditorDataDir()))
         {
             AppConst.ResourcePath = PathSystem.GetEditorDataDir();
         }
         this.InitPackageFileList();
     }
     if (this.m_assetName2abInfoMap == null)
     {
         this.m_assetName2abInfoMap = SerializeUtility.DeserializeXDictFromMemory <string, AssetBundleInfo>(XUtility.GetConfigTxt("abmap", ".txt"));
     }
     this.m_manifest = (AssetLoader.LoadAssetNow("AssetBundleManifest", typeof(AssetBundleManifest)) as AssetBundleManifest);
     if (this.m_manifest == null)
     {
         Debug.LogError("manifest加载失败");
     }
 }