🚑 Fixes computation of FSM#state_duration

main
Ervan Lefevre 2 years ago
parent 3edebcef32
commit 4919dc92de
  1. 2
      scripts/ia/fsm.gd

@ -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

Loading…
Cancel
Save