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