mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
Update GameObjectFactory.js
This commit is contained in:
parent
5313356fb0
commit
1907bda5ee
1 changed files with 4 additions and 1 deletions
|
@ -134,7 +134,10 @@ var GameObjectFactory = new Class({
|
|||
{
|
||||
this.displayList.add(child);
|
||||
}
|
||||
else if (child.preUpdate)
|
||||
|
||||
// For when custom objects have overridden `preUpdate` but don't hook into the ADDED_TO_SCENE event:
|
||||
// Adding to the list multiple times is safe, as it won't add duplicates into the list anyway.
|
||||
if (child.preUpdate)
|
||||
{
|
||||
this.updateList.add(child);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue