mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Only set data if it's not undefined.
This commit is contained in:
parent
bf368ab70b
commit
66a9bec9bb
1 changed files with 6 additions and 2 deletions
|
@ -491,6 +491,7 @@ var Systems = new Class({
|
|||
|
||||
/**
|
||||
* Start this Scene running and rendering.
|
||||
* Called automatically by the SceneManager.
|
||||
*
|
||||
* @method Phaser.Scenes.Systems#start
|
||||
* @since 3.0.0
|
||||
|
@ -499,9 +500,12 @@ var Systems = new Class({
|
|||
*/
|
||||
start: function (data)
|
||||
{
|
||||
this.settings.status = CONST.START;
|
||||
if (data)
|
||||
{
|
||||
this.settings.data = data;
|
||||
}
|
||||
|
||||
this.settings.data = data;
|
||||
this.settings.status = CONST.START;
|
||||
|
||||
this.settings.active = true;
|
||||
this.settings.visible = true;
|
||||
|
|
Loading…
Reference in a new issue