Add package update method

新增指定资源版本的资源更新下载方法。
This commit is contained in:
hevinci
2022-05-01 20:33:50 +08:00
parent 47af58bb5b
commit ce70eebda6
10 changed files with 403 additions and 75 deletions
@@ -31,10 +31,10 @@ namespace YooAsset
/// <summary>
/// 创建解压器
/// </summary>
public DownloaderOperation CreateUnpackerByTags(string[] tags, int fileUpackingMaxNumber, int failedTryAgain)
public PatchUnpackerOperation CreatePatchUnpackerByTags(string[] tags, int fileUpackingMaxNumber, int failedTryAgain)
{
List<BundleInfo> unpcakList = PatchHelper.GetUnpackListByTags(AppPatchManifest, tags);
var operation = new DownloaderOperation(unpcakList, fileUpackingMaxNumber, failedTryAgain);
var operation = new PatchUnpackerOperation(unpcakList, fileUpackingMaxNumber, failedTryAgain);
return operation;
}