runAction method
Implementation
@override
bool runAction(double dt, GameComponent comp, BonfireGameInterface game) {
if (comp is RandomMovement) {
comp.runRandomMovement(
dt,
speed: speed,
maxDistance: maxDistance,
minDistance: minDistance,
checkDirectionWithRayCast: checkDirectionWithRayCast,
timeKeepStopped: timeKeepStopped,
updateAngle: updateAngle,
directions: allowDirections,
);
}
return true;
}