onPlayRunDownAnimation method

  1. @override
void onPlayRunDownAnimation()
override

Implementation

@override
void onPlayRunDownAnimation() {
  if (isJumping) {
    if (lastDirectionHorizontal == Direction.left) {
      _jumpDownLeft();
    } else {
      animation?.playOther(
        JumpAnimationsEnum.jumpDownRight,
        flipX: false,
      );
    }
  }
}