state chart updates

This commit is contained in:
Haze Weathers 2023-05-01 00:09:39 -04:00
parent d11ccb37a1
commit 02b85c7dd2
7 changed files with 242 additions and 18 deletions

View file

@ -70,7 +70,7 @@ func _handle_transition(transition: Transition, source: State) -> void:
if self.is_a_parent_of(target):
# find which child is also ancestor
for child in get_children():
if child.is_parent_of(target):
if child.is_a_parent_of(target):
# change state if necessary
if _active_state != child:
if is_instance_valid(_active_state):