Пример #1
0
 public void Initialize(string manifestName, Action initOK)
 {
     this.m_OutDownloadingURL = Util.GetRelativePath();
     this.m_InDownloadingURL  = Util.GetStreamingAssetsPath();
     this.ReadBundlesInDataPath();
     this.LoadAsset <AssetBundleManifest>(manifestName, new string[]
     {
         "AssetBundleManifest"
     }, delegate(UnityEngine.Object[] objs)
     {
         if (objs.Length > 0)
         {
             this.m_AssetBundleManifest = (objs[0] as AssetBundleManifest);
         }
         if (initOK != null)
         {
             initOK();
         }
         this.UnloadAssetBundle(manifestName, false, true);
     }, null);
 }