8 lines
176 B
GDScript3
8 lines
176 B
GDScript3
|
class_name PlayerHitBallState
|
||
|
extends PlayerState
|
||
|
|
||
|
func enter(_msg := {}):
|
||
|
player.hit_ball.emit()
|
||
|
await player.play_hit_ball_animation()
|
||
|
state_machine.transition_to("Idle")
|