Fixed StateBug

This commit is contained in:
Jan Schuffenhauer
2020-04-20 21:09:13 +02:00
parent b68689dfa0
commit 8164b47301
5 changed files with 57 additions and 105 deletions

View File

@@ -31,7 +31,6 @@ func _on_state_active_finished():
func go_to_next_state_in_sequence():
state_active.exit()
var new_state_index = (state_active.get_index() + 1) % get_child_count()
if new_state_index == 0:
emit_signal('finished')