Update PatchSystem

移除YooAssets.ClearAllCacheFiles()
新增YooAssets.ClearUnusedCacheFiles();
This commit is contained in:
hevinci
2022-10-18 11:56:05 +08:00
parent eca5d73b94
commit 9bc5580229
9 changed files with 172 additions and 10 deletions
@@ -36,7 +36,7 @@ namespace YooAsset
/// 人类可读的版本信息
/// </summary>
public string HumanReadableVersion;
/// <summary>
/// 资源列表(主动收集的资源列表)
/// </summary>
@@ -217,6 +217,19 @@ namespace YooAsset
return BundleDic.TryGetValue(bundleName, out result);
}
/// <summary>
/// 是否包含资源文件
/// </summary>
public bool IsIncludeBundleFile(string fileName)
{
foreach (var patchBundle in BundleList)
{
if (patchBundle.FileName == fileName)
return true;
}
return false;
}
/// <summary>
/// 序列化