Add cleanup for compsites in BT + refactor
This commit is contained in:
@@ -26,7 +26,7 @@ bool init(int *game) {
|
||||
// delay 1s
|
||||
// print "Hello, world!"
|
||||
printBT = bzBTMakeRoot(nodePool);
|
||||
BzBTNode *pseq = bzBTCompSequence(nodePool, printBT, true);
|
||||
BzBTNode *pseq = bzBTCompSelector(nodePool, printBT, true);
|
||||
bzBTDecorDelay(nodePool, pseq, 2.0f);
|
||||
|
||||
BzBTNode *node = bzBTDecorRepeat(nodePool, pseq, 5);
|
||||
|
||||
Reference in New Issue
Block a user