Пример #1
0
 // Load AssetBundleManifest.
 public void Initialize(string manifestName, Action initOK)
 {
     m_BaseDownloadingURL = Util.GetRelativePath();
     LoadAsset <AssetBundleManifest>(manifestName, new string[] { "AssetBundleManifest" }, delegate(UObject[] objs)
     {
         if (objs.Length > 0)
         {
             m_AssetBundleManifest = objs[0] as AssetBundleManifest;
             m_AllManifest         = m_AssetBundleManifest.GetAllAssetBundles();
         }
         if (initOK != null)
         {
             initOK();
         }
     });
 }
Пример #2
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);
 }
Пример #3
0
        // Load AssetBundleManifest.
        public void Initialize(string manifestName, Action initOK)
        {
            if (Application.platform == RuntimePlatform.WindowsPlayer)
            {
                m_BaseDownloadingURL = "http://47.74.237.216/thumbgame/cdn/update/facebook/";
            }
            else
            {
                m_BaseDownloadingURL = Util.GetRelativePath();
            }

            LoadAsset <AssetBundleManifest>(manifestName, new string[] { "AssetBundleManifest" }, delegate(UObject[] objs) {
                if (objs.Length > 0)
                {
                    m_AssetBundleManifest = objs[0] as AssetBundleManifest;
                    m_AllManifest         = m_AssetBundleManifest.GetAllAssetBundles();
                }
                if (initOK != null)
                {
                    initOK();
                }
            });
        }