Esempio n. 1
0
 public BehaviourTree(BTNode root)
 {
     _blackboard = new Blackboard();
     _root       = root;
 }
Esempio n. 2
0
 /// <summary>
 /// Sets the root of the tree, attaching the behaviour to
 /// </summary>
 /// <param name="node">The new root node</param>
 public void SetRoot(BTNode node) => _root = node;
Esempio n. 3
0
 /// <summary>
 /// Sets the Node parent
 /// </summary>
 /// <param name="parent">The new node parent</param>
 public void SetParent(BTNode parent) => _parent = parent;