onPlayIdleDownAnimation method

void onPlayIdleDownAnimation()

Implementation

void onPlayIdleDownAnimation() {
  if (animation?.canIdleDown == true) {
    animation?.play(SimpleAnimationEnum.idleDown);
  } else {
    if (lastDirectionHorizontal == Direction.left) {
      animation?.play(SimpleAnimationEnum.idleLeft);
    } else {
      animation?.play(SimpleAnimationEnum.idleRight);
    }
  }
}