fix(core): ensure Core.destroy() cleans up scene manager

- Add sceneManager.destroy() call in Core.destroy()
- Update lawn-mower-demo submodule
This commit is contained in:
yhh
2025-12-31 21:51:03 +08:00
parent 0f5aa633d8
commit 4a3d8c3962
2 changed files with 2 additions and 1 deletions

View File

@@ -742,6 +742,7 @@ export class Core {
if (!this._instance) return;
this._instance._debugManager?.stop();
this._instance._sceneManager.destroy();
this._instance._serviceContainer.clear();
Core._logger.info('Core destroyed');
this._instance = null;