/// <summary>
 /// Traverses the nodes under the root in pre-order and sets the tree nodes.
 /// </summary>
 /// <param name="root">The tree root</param>
 public void SetNodes(BehaviourNode root)
 {
     SetNodes(TreeTraversal.PreOrder(root));
 }