fix: make auto call exit() on change scene
This commit is contained in:
parent
87ef04ebc4
commit
747d1434f7
|
@ -115,6 +115,11 @@ function SceneManager(p)
|
||||||
if ( o == null )
|
if ( o == null )
|
||||||
o = this.addScene( fnScene );
|
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
|
// Re-arm the enter function at each show of the scene
|
||||||
o.enterExecuted = false;
|
o.enterExecuted = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user