移除场景成功之后再尝试卸载ab包

pull/249/head
e 2024-03-03 23:41:28 +08:00
parent b67868868d
commit 929cd23f35
1 changed files with 1 additions and 2 deletions

View File

@ -82,7 +82,6 @@ namespace YooAsset
{
_asyncOp = SceneManager.UnloadSceneAsync(_provider.SceneObject);
_provider.ResourceMgr.UnloadSubScene(_provider.SceneName);
_provider.ResourceMgr.TryUnloadUnusedAsset(_provider.MainAssetInfo);
_steps = ESteps.Checking;
}
@ -91,7 +90,7 @@ namespace YooAsset
Progress = _asyncOp.progress;
if (_asyncOp.isDone == false)
return;
_provider.ResourceMgr.TryUnloadUnusedAsset(_provider.MainAssetInfo);
_steps = ESteps.Done;
Status = EOperationStatus.Succeed;
}