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

View File

@@ -341,6 +341,14 @@ namespace YooAsset
_providers.Remove(provider);
}
}
internal bool CheckBundleCanDestroy(int bundleID)
{
string bundleName = BundleServices.GetBundleName(bundleID);
BundleLoaderBase loader = TryGetAssetBundleLoader(bundleName);
if (loader == null)
return true;
return loader.CanDestroy();
}
private BundleLoaderBase CreateAssetBundleLoaderInternal(BundleInfo bundleInfo)
{