update runtime code

移除了ILocationServices接口类。
增加了bool CheckLocationValid(string location)方法。
This commit is contained in:
hevinci
2022-10-21 18:36:03 +08:00
parent d7760cd34d
commit bb64ff7278
16 changed files with 70 additions and 148 deletions

View File

@@ -70,14 +70,13 @@ namespace YooAsset
}
/// <summary>
/// 获取资源路径
/// 检查资源定位地址是否有效
/// </summary>
/// <param name="location">资源的定位地址</param>
/// <returns>如果location地址无效则返回空字符串</returns>
public static string GetAssetPath(string location)
public static bool CheckLocationValid(string location)
{
DebugCheckDefaultPackageValid();
return _defaultPackage.GetAssetPath(location);
return _defaultPackage.CheckLocationValid(location);
}
#endregion