X-Git-Url: http://git.purplebirdman.com/frog-ninja.git/blobdiff_plain/38bec94dddbd6aa14799d7af8e3259dbcf8f682b..715f2ba5689e0474928af72a3f2d7493ef431963:/player/fall_to_landing.gd diff --git a/player/fall_to_landing.gd b/player/fall_to_landing.gd index 2ad905b..b1f4efb 100644 --- a/player/fall_to_landing.gd +++ b/player/fall_to_landing.gd @@ -9,17 +9,14 @@ func should_enter(input: InputPacket) -> String: if finished: input.actions.sort_custom(moves_priority_sort) return input.actions[0] - return "fallToLanding" + return state_name func on_enter_state(): finished = false player.velocity = Vector3.ZERO - player.skin.animation_tree.animation_finished.connect(_on_animation_finished) - player.skin.transition_fallToLanding() func _on_animation_finished(_name: String): # TODO: make sure animation is finished by using name finished = true - player.skin.animation_tree.animation_finished.disconnect(_on_animation_finished)