public void draw(Canvas canvas) { for (GameObject component : mComponents) { component.draw(canvas); } }
public void update(long time, GameObject parent) { for (GameObject component : mComponents) { component.update(time, this); } }