update file system

This commit is contained in:
何冠峰
2025-02-26 19:31:06 +08:00
parent e4d69d869b
commit 0cdcfe7f52
10 changed files with 114 additions and 24 deletions

View File

@@ -153,7 +153,10 @@ namespace YooAsset
{
var downloader = DownloadCenter.DownloadFileAsync(bundle, param);
downloader.Reference(); //增加下载器的引用计数
return downloader;
// 注意:将下载器进行包裹,可以避免父类任务终止的时候,连带子任务里的下载器也一起被终止!
var wrapper = new DownloadFileWrapper(downloader);
return wrapper;
}
public virtual FSLoadBundleOperation LoadBundleFile(PackageBundle bundle)
{