runAction method
Implementation
@override
bool runAction(double dt, GameComponent comp, BonfireGameInterface game) {
if (comp is Movement) {
return comp.moveTowardsTarget(
target: target,
margin: margin,
movementAxis: movementAxis,
);
} else {
return false;
}
}