update runtime code

This commit is contained in:
hevinci
2023-06-26 10:42:56 +08:00
parent b98d4cb091
commit 1d5663d93a
6 changed files with 23 additions and 42 deletions

View File

@@ -50,22 +50,6 @@ namespace YooAsset
return bundleInfo;
}
// 解压相关
private List<BundleInfo> ConvertToUnpackList(List<PackageBundle> unpackList)
{
List<BundleInfo> result = new List<BundleInfo>(unpackList.Count);
foreach (var packageBundle in unpackList)
{
var bundleInfo = ConvertToUnpackInfo(packageBundle);
result.Add(bundleInfo);
}
return result;
}
private BundleInfo ConvertToUnpackInfo(PackageBundle packageBundle)
{
return ManifestTools.GetUnpackInfo(packageBundle);
}
#region IRemoteServices接口
public string GetRemoteMainURL(string fileName)
{
@@ -256,7 +240,7 @@ namespace YooAsset
}
}
return ConvertToUnpackList(downloadList);
return ManifestTools.ConvertToUnpackInfos(downloadList);
}
ResourceUnpackerOperation IPlayModeServices.CreateResourceUnpackerByTags(string[] tags, int upackingMaxNumber, int failedTryAgain, int timeout)
@@ -284,7 +268,7 @@ namespace YooAsset
}
}
return ConvertToUnpackList(downloadList);
return ManifestTools.ConvertToUnpackInfos(downloadList);
}
#endregion