add method

void add(
  1. Object object
)

Add a child

Implementation

void add(Object object) {
  assert(object != this);
  object.scene = scene;
  object.parent = this;
  children.add(object);
}