onPlayRunUpRightAnimation method

void onPlayRunUpRightAnimation()

Implementation

void onPlayRunUpRightAnimation() {
  if (animation?.canRunUpRight == true) {
    animation?.play(SimpleAnimationEnum.runUpRight);
  } else {
    animation?.play(SimpleAnimationEnum.runRight);
  }
}