示例#1
0
 public BehaviourTree(BTNode root)
 {
     _blackboard = new Blackboard();
     _root       = root;
 }
示例#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;
示例#3
0
 /// <summary>
 /// Sets the Node parent
 /// </summary>
 /// <param name="parent">The new node parent</param>
 public void SetParent(BTNode parent) => _parent = parent;