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.
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.