runAction method

  1. @override
bool runAction(
  1. double dt,
  2. GameComponent comp,
  3. BonfireGameInterface game
)
override

Implementation

@override
bool runAction(double dt, GameComponent comp, BonfireGameInterface game) {
  final current = behaviors[_currentIdex];
  if (current.runAction(dt, comp, game)) {
    _currentIdex++;
  }
  return _currentIdex >= behaviors.length;
}