fix: make auto call exit() on change scene

This commit is contained in:
nadiarvi 2025-04-30 02:47:20 +09:00
parent ba3779b7d4
commit de94384713

View File

@ -115,6 +115,11 @@ function SceneManager(p)
if ( o == null )
o = this.addScene( fnScene );
// MODIFIED
if (this.scene && this.scene.oScene && typeof this.scene.oScene.exit === 'function') {
this.scene.oScene.exit();
}
// Re-arm the enter function at each show of the scene
o.enterExecuted = false;