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);
}