BehaviorTree.BehaviorTreeNode.BehaviorTreeNode C# (CSharp) Method

BehaviorTreeNode() public method

public BehaviorTreeNode ( BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null ) : System.Collections
rParentNode BehaviorTreeNode
rCondition BehaviorTreeCondition
return System.Collections
        public BehaviorTreeNode(BehaviorTreeNode rParentNode, BehaviorTreeCondition rCondition = null)
        {
            NodeName = "UNNAMED";
            mChildrenCount = 0;
            mActiveNodeCur = null;
            mActiveNodeLast = null;
            mCondition = null;
            mChildren = new BehaviorTreeNode[_maxChildNodeCount];

            for( int i=0; i < _maxChildNodeCount; i++ )
            {
                mChildren[i] = null;
            }

            SetParentNode(rParentNode);
            SetExternalCondition(rCondition);
        }