Files
kicking-high/proto3/godot/ai/parallel.gd
2020-04-13 12:45:25 +03:00

13 lines
271 B
GDScript

extends BTBase
class_name BTParallel
func tick(tick: Tick) -> int:
var _result := OK #if we have no children, assume success
for child in get_children():
var x_result = child._execute(tick)
assert(typeof(x_result) == TYPE_INT)
_result = x_result
return OK