update method

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

Updates this node and its children by dt seconds.

Implementation

@nonVirtual
void update(double dt) {
  if (!_enabled) return;
  final ticks = _ticks;

  if (ticks != null) {
    for (var i = 0; i < ticks.length; i += 1) {
      ticks[i](dt);
    }
  }

  final children = _egg?.nodes;
  if (children == null || children.isEmpty) return;

  for (final child in children) {
    child.update(dt);
  }
}