2 class_name FallToLanding
8 func should_enter(input: InputPacket) -> String:
10 input.actions.sort_custom(moves_priority_sort)
11 return input.actions[0]
12 return "fallToLanding"
15 func on_enter_state():
17 player.velocity = Vector3.ZERO
18 player.skin.animation_tree.animation_finished.connect(_on_animation_finished)
19 player.skin.transition_fallToLanding()
22 func _on_animation_finished(_name: String):
23 # TODO: make sure animation is finished by using name
25 player.skin.animation_tree.animation_finished.disconnect(_on_animation_finished)