public void setIndexedNode(int index, BlendNode newNode)
    {
        Debug.Log(index);
        newNode.replaceConnections(NodeTree[index]);

        NodeTree[index] = newNode;
    }
    public void SetRoot(BlendNode newRoot)
    {
        newRoot.replaceConnections(NodeTree[0]);

        NodeTree[0] = newRoot;
    }