Exemplo n.º 1
0
        /// <summary>
        /// 资源下载完成
        /// </summary>
        /// <param name="err"></param>
        /// <param name="fn"></param>
        /// <param name="info"></param>
        public void DownloadOneResComplete(string err, string fn, BundleMeta info)
        {
            //downloadCount++;

            //updateUI.LabelProgress.text = downloadCount + "/" + updateInfo.UpdateCount;
            //updateUI.Slider.value = (float)downloadCount / updateInfo.UpdateCount;
        }
Exemplo n.º 2
0
        public List <string> assets         = new List <string>(); //包内资源列表

        public bool Equals(BundleMeta bundle)
        {
            return(bundle.name == name && bundle.md5 == md5);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 获得资源的全称
        /// </summary>
        /// <param name="name"></param>
        /// <param name="meta"></param>
        /// <returns></returns>
        private string GetResRealityName(string name, BundleMeta meta)
        {
            var url = meta.bIsAdditionBundle ? AdditionBundleUrl + name : AssetBundleUrl + name;

            return(url);
        }