Example #1
0
        public void RemoveNode(FBehaviorNode node)
        {
            if (node.mParentNode != null)
            {
                node.mParentNode.mChildNodes.Remove(node);
                node.mParentNode = null;
            }

            for (int i = 0; i < node.mChildNodes.Count; i++)
            {
                node.mChildNodes[i].mParentNode = null;
            }

            mBuffNodes.Remove(node.mData.nodeName);
        }
Example #2
0
 public void Init(FBehaviorNode node)
 {
     mNode = node;
 }
Example #3
0
 public void SetHead(string headHead)
 {
     mRootNode = GetNode(headHead);
     ResetNode();
 }