updateAll method

void updateAll(
  1. Input input
)

Implementation

void updateAll(Input input) {
  update(input);

  for(Entity e in children) {
    e.updateAll(input);

    for(int i=0;i<toDestroy.length;i++) {
        if(toDestroy[i] == e) {
          toDestroy.remove(i);
          children.remove(e);

          print("destroyed");
        }
    }
  }
}