proto3 initial commit
This commit is contained in:
12
proto3/godot/ai/parallel.gd
Normal file
12
proto3/godot/ai/parallel.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user