public IBehaviourTreeNode Build() { if (curNode == null) { throw new ApplicationException("Can't create a behaviour tree with zero nodes"); } return curNode; }