mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 05:58:30 +00:00
'add' shouldn't control the update state.
This commit is contained in:
parent
579a1e5a26
commit
a60562a634
1 changed files with 4 additions and 4 deletions
|
@ -96,11 +96,11 @@ var BuildGameObject = function (scene, gameObject, config)
|
|||
if (add)
|
||||
{
|
||||
scene.sys.displayList.add(gameObject);
|
||||
}
|
||||
|
||||
if (gameObject.preUpdate)
|
||||
{
|
||||
scene.sys.updateList.add(gameObject);
|
||||
}
|
||||
if (gameObject.preUpdate)
|
||||
{
|
||||
scene.sys.updateList.add(gameObject);
|
||||
}
|
||||
|
||||
return gameObject;
|
||||
|
|
Loading…
Add table
Reference in a new issue