playIdleAnimation method

void playIdleAnimation()

Implementation

void playIdleAnimation() {
  switch (_comp.direction) {
    case Direction.left:
      onPlayIdleLeftAnimation();
      break;
    case Direction.right:
      onPlayIdleRightAnimation();
      break;
    case Direction.up:
      onPlayIdleUpAnimation();
      break;
    case Direction.down:
      onPlayIdleDownAnimation();
      break;
    case Direction.upLeft:
      onPlayIdleUpLeftAnimation();
      break;
    case Direction.upRight:
      onPlayIdleUpRightAnimation();
      break;
    case Direction.downLeft:
      onPlayIdleDownLeftAnimation();
      break;
    case Direction.downRight:
      onPlayIdleDownRightAnimation();
      break;
  }
}