Remove duplicated code

Adding game object  to UpdateList has been invoked in `displayList.add` by new ADDED_TO_SCENE event already.
This commit is contained in:
Rex 2020-09-10 23:44:21 +08:00
parent efd15f9cde
commit f513f5bf31

View file

@ -135,11 +135,6 @@ var GameObjectFactory = new Class({
this.displayList.add(child);
}
if (child.preUpdate)
{
this.updateList.add(child);
}
return child;
},