@ -32,8 +32,10 @@ func _physics_process(delta):
if "after_state" in root:
root.call("after_state", delta)
state_duration += delta
_transition()
func _transition():
if next_state != null:
previous_state = current_state