// 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(); } }); }
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); }
// 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(); } }); }