Merge pull request #249 from ZensYue/dev

移除场景成功之后再尝试卸载ab包
pull/252/head
何冠峰 2024-03-04 11:12:45 +08:00 committed by GitHub
commit e598d60439
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;
}