onPlayRunDownAnimation method

void onPlayRunDownAnimation()

Implementation

void onPlayRunDownAnimation() {
  if (animation?.canRunDown == true) {
    animation?.play(SimpleAnimationEnum.runDown);
  } else {
    if (lastDirectionHorizontal == Direction.left) {
      animation?.play(SimpleAnimationEnum.runLeft);
    } else {
      animation?.play(SimpleAnimationEnum.runRight);
    }
  }
}