fix: make auto call exit() on change scene
This commit is contained in:
parent
ba3779b7d4
commit
de94384713
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user