11 lines
254 B
GDScript
11 lines
254 B
GDScript
extends PlayerState
|
|
|
|
|
|
func _on_sprinting_state_processing(delta: float) -> void:
|
|
if not Input.is_action_pressed("sprint"):
|
|
player_controller.state_chart.send_event("onWalking")
|
|
|
|
|
|
func _on_sprinting_state_entered() -> void:
|
|
player_controller.sprint()
|