public void RequestBundleUI(string path, int dialogid, string checkname) { string str = path; if (TsPlatform.IsMobile && !path.Contains("_mobile")) { str += "_mobile"; } WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem.SetItemType(ItemType.USER_ASSETB); NkBundleParam nkBundleParam = new NkBundleParam(NkBundleParam.eBundleType.BUNDLE_UI_DIALOG, string.Empty); nkBundleParam.SetPreload(false); nkBundleParam.SetParam(dialogid, checkname); wWWItem.SetCallback(new PostProcPerItem(this.ProcessBundleCallBack), nkBundleParam); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, false); }
public void RequestBundleRuntime(string path, string stackname, ItemType itemtype, int iParam, string szParam, NkBundleParam.eBundleType bundletype, string bundlekey, bool bUnloadAfter) { string str = path; if (TsPlatform.IsMobile && !path.Contains("_mobile")) { str += "_mobile"; } WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, stackname); wWWItem.SetItemType(itemtype); NkBundleParam nkBundleParam = new NkBundleParam(bundletype, bundlekey); nkBundleParam.SetPreload(false); nkBundleParam.SetParam(iParam, szParam); wWWItem.SetCallback(new PostProcPerItem(this.ProcessBundleCallBack), nkBundleParam); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, bUnloadAfter); }