update runtime logic

补丁清单的资源包列表增加引用链
This commit is contained in:
hevinci
2023-02-22 15:41:01 +08:00
parent 26ffb829d0
commit fdf27cbc1a
11 changed files with 59 additions and 1 deletions
@@ -220,6 +220,22 @@ namespace YooAsset
}
}
/// <summary>
/// 获取资源包名称
/// </summary>
public string GetBundleName(int bundleID)
{
if (bundleID >= 0 && bundleID < BundleList.Count)
{
var patchBundle = BundleList[bundleID];
return patchBundle.BundleName;
}
else
{
throw new Exception($"Invalid bundle id : {bundleID}");
}
}
/// <summary>
/// 尝试获取补丁资源
/// </summary>