simpleAttackMelee method
void
simpleAttackMelee({})
Implementation
void simpleAttackMelee({
Future<SpriteAnimation>? animationRight,
required double damage,
required Vector2 size,
dynamic id,
Direction? direction,
bool withPush = true,
double? sizePush,
Vector2? centerOffset,
double? marginFromCenter,
bool diagonalEnabled = true,
}) {
simpleAttackMeleeByDirection(
direction: direction ?? _getLastDirection(diagonalEnabled),
animationRight: animationRight,
damage: damage,
id: id,
size: size,
withPush: withPush,
sizePush: sizePush,
attackFrom: AttackOriginEnum.PLAYER_OR_ALLY,
centerOffset: centerOffset,
marginFromCenter: marginFromCenter,
);
}