update asset system

修复引用链无效的问题。
This commit is contained in:
hevinci
2023-02-24 12:12:44 +08:00
parent 0232e5adec
commit f8ba0c9753
2 changed files with 20 additions and 18 deletions

View File

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