onPlayRunUpAnimation method

  1. @override
void onPlayRunUpAnimation()
override

Implementation

@override
void onPlayRunUpAnimation() {
  if (isJumping) {
    if (lastDirectionHorizontal == Direction.left) {
      _playJumpUpLeft();
    } else {
      animation?.playOther(JumpAnimationsEnum.jumpUpRight, flipX: false);
    }
  } else {
    super.onPlayRunUpAnimation();
  }
}