Add Nested node to BT

This commit is contained in:
Wojtek Figat
2023-08-21 17:38:48 +02:00
parent a6e503d21b
commit cc5cde5bc7
5 changed files with 132 additions and 4 deletions

View File

@@ -79,6 +79,7 @@ void Behavior::OnLateUpdate()
context.Behavior = this;
context.Knowledge = &_knowledge;
context.Memory = _knowledge.Memory;
context.RelevantNodes = &_knowledge.RelevantNodes;
context.DeltaTime = updateDeltaTime;
const BehaviorUpdateResult result = tree->Graph.Root->InvokeUpdate(context);
if (result != BehaviorUpdateResult::Running)