Update YooAsset

This commit is contained in:
hevinci
2022-03-09 21:53:01 +08:00
parent c3ecca7cfd
commit 1c7b90806c
77 changed files with 596 additions and 604 deletions
@@ -3,7 +3,6 @@ using System.IO;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using YooAsset.Utility;
namespace YooAsset
{
@@ -11,7 +10,7 @@ namespace YooAsset
/// 补丁清单文件
/// </summary>
[Serializable]
public class PatchManifest
internal class PatchManifest
{
/// <summary>
/// 资源版本号
@@ -79,7 +78,7 @@ namespace YooAsset
}
else
{
Logger.Warning($"Not found asset path in patch manifest : {assetPath}");
YooLogger.Warning($"Not found asset path in patch manifest : {assetPath}");
return new string[] { };
}
}
@@ -104,7 +103,7 @@ namespace YooAsset
}
else
{
Logger.Warning($"Not found asset path in patch manifest : {assetPath}");
YooLogger.Warning($"Not found asset path in patch manifest : {assetPath}");
return string.Empty;
}
}
@@ -150,7 +149,7 @@ namespace YooAsset
{
string assetPathWithoutExtension = StringUtility.RemoveExtension(assetPath);
if (patchManifest.Assets.ContainsKey(assetPathWithoutExtension))
Logger.Warning($"Asset path have existed : {assetPathWithoutExtension}");
YooLogger.Warning($"Asset path have existed : {assetPathWithoutExtension}");
else
patchManifest.Assets.Add(assetPathWithoutExtension, patchAsset);
}