mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 07:31:11 +00:00
Only set Scene status to running if still in creating
This commit is contained in:
parent
91b3c7a92d
commit
19eb363a84
1 changed files with 6 additions and 3 deletions
|
@ -607,9 +607,9 @@ var SceneManager = new Class({
|
|||
|
||||
if (scene.create)
|
||||
{
|
||||
scene.sys.settings.status = CONST.CREATING;
|
||||
settings.status = CONST.CREATING;
|
||||
|
||||
scene.create.call(scene, scene.sys.settings.data);
|
||||
scene.create.call(scene, settings.data);
|
||||
|
||||
if (settings.isTransition)
|
||||
{
|
||||
|
@ -623,7 +623,10 @@ var SceneManager = new Class({
|
|||
sys.sceneUpdate = scene.update;
|
||||
}
|
||||
|
||||
settings.status = CONST.RUNNING;
|
||||
if (settings.status === CONST.CREATING)
|
||||
{
|
||||
settings.status = CONST.RUNNING;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue