rdemoparty / stardust

2D sidescroller
2 stars 0 forks source link

Script export: merge createEntity() and addEntity() #19

Closed benishor closed 9 years ago

benishor commented 9 years ago

Check if createEntity() and addEntity() are ever used one without the other. If not, they can be merged into a single method so that we don't pay the price of switching contexts twice for the same object. Also try not to pass around the SCENE/GameObject pointers if possible.