示例#1
0
 public void SetBundleDownloader(BundleDownloader bundleDownloader)
 {
     mBundleDownloader = bundleDownloader;
     mBundleDownloader.pFinishAndDisposeCall += pFinishAndDisposeCall;
     mBundleDownloader.pFinishAndDisposeCall += FinishAciton;
     mBundleDownloader.pLoserCall            += pLoserCall;
 }
示例#2
0
        //开始下载
        public async ETTask StartAsync(string fileFoldr = "", string versionName = "Version.txt", BundleDownSchedule downloader = null)
        {
            BundleDownloader bundleDownloader = ComponentFactory.Create <BundleDownloader>();

            downloader?.SetBundleDownloader(bundleDownloader);
            await bundleDownloader.StartAsync(fileFoldr, versionName);

            DisposeBundleDownloader(bundleDownloader);
        }
示例#3
0
 //销毁bundle下载工具对象
 public void DisposeBundleDownloader(BundleDownloader bundleDownloader)
 {
     bundleDownloader.Dispose();
 }