|
class_name TaskSequence
|
|
extends Task
|
|
|
|
func run(blackboard: Dictionary) -> void:
|
|
for c in self.get_children():
|
|
if status == RUNNING and not c.status == RUNNING:
|
|
continue
|
|
c.run(blackboard)
|
|
if c.status != SUCCESS:
|
|
status = c.status
|
|
return
|
|
status = SUCCESS
|