onPlayRunUpAnimation method

  1. @override
void onPlayRunUpAnimation()
override

Implementation

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