bovido/scripts/player/states/player_hit_ball_state.gd

8 lines
176 B
GDScript3
Raw Permalink Normal View History

2023-06-28 21:29:55 +02:00
class_name PlayerHitBallState
extends PlayerState
func enter(_msg := {}):
player.hit_ball.emit()
await player.play_hit_ball_animation()
state_machine.transition_to("Idle")