public NkBundleParam(NkBundleParam.eBundleType bundletype, string key) { this.m_kBundleType = bundletype; this.m_szBundleKey = key; this.m_szCategory = string.Empty; this.m_bPreload = false; this.m_kParamData = null; }
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); }