'add' shouldn't control the update state.

This commit is contained in:
Richard Davey 2017-11-16 16:47:13 +00:00
parent 579a1e5a26
commit a60562a634

View file

@ -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;