forked from team-sg/hero-mark-2
state chart updates
This commit is contained in:
parent
d11ccb37a1
commit
02b85c7dd2
7 changed files with 242 additions and 18 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue