update method

  1. @override
void update(
  1. double dt
)

This updates every component in the tree.

It also adds the components added via add since the previous tick, and removes those that are marked for removal via the remove and Component.removeFromParent methods. You can override it to add more custom behavior.

Implementation

@override
void update(double dt) {
  super.update(dt);
  handleCollidables();
}