资源路径大小写不敏感逻辑优化
This commit is contained in:
何冠峰
2025-03-31 19:06:03 +08:00
parent b3ead90832
commit b0dc829b04
2 changed files with 8 additions and 9 deletions
@@ -138,9 +138,6 @@ namespace YooAsset
if (string.IsNullOrEmpty(location))
return string.Empty;
if (LocationToLower)
location = location.ToLower();
if (AssetPathMapping1.TryGetValue(location, out string assetPath))
return assetPath;
else
@@ -307,9 +304,6 @@ namespace YooAsset
return string.Empty;
}
if (LocationToLower)
location = location.ToLower();
if (AssetPathMapping1.TryGetValue(location, out string assetPath))
{
return assetPath;