onPlayRunUpAnimation method

void onPlayRunUpAnimation()

Implementation

void onPlayRunUpAnimation() {
  if (animation?.canRunUp == true) {
    animation?.play(SimpleAnimationEnum.runUp);
  } else {
    if (lastDirectionHorizontal == Direction.left) {
      animation?.play(SimpleAnimationEnum.runLeft);
    } else {
      animation?.play(SimpleAnimationEnum.runRight);
    }
  }
}