update asset system

真机上使用错误方法加载原生文件的时候给予正确的错误提示。
This commit is contained in:
hevinci
2023-07-07 12:16:16 +08:00
parent d3d15fc59f
commit ba39291ee7
4 changed files with 37 additions and 6 deletions
@@ -55,12 +55,7 @@ namespace YooAsset
if (OwnerBundle.CacheBundle == null)
{
if (OwnerBundle.IsDestroyed)
throw new System.Exception("Should never get here !");
Status = EStatus.Failed;
LastError = $"The bundle {OwnerBundle.MainBundleInfo.Bundle.BundleName} has been destroyed by unity bugs !";
YooLogger.Error(LastError);
InvokeCompletion();
ProcessCacheBundleException();
return;
}