update method

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

Implement this method to update the game state, given the time delta that has passed since the last update.

Implementation

@override
void update(double delta) {
  for (final entity in _query?.entities ?? <Entity>[]) {
    final particle = entity.get<ParticleComponent>()!.particle;
    particle?.update(delta);
  }
}