Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
    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);
    }