class_name PlayerHitBallState extends PlayerState func enter(_msg := {}): player.hit_ball.emit() await player.play_hit_ball_animation() state_machine.transition_to("Idle")