public TBTTreeNode AddChild(TBTTreeNode node) { if (m_maxChildCount >= 0 && m_children.Count >= m_maxChildCount) { GameLog.LogWarning("**BT** exceeding child count"); return(this); } m_children.Add(node); return(this); }
//------------------------------------------------------------------- public TBTTreeNode AddChild(TBTTreeNode node) { if (_maxChildCount >= 0 && _children.Count >= _maxChildCount) { TLogger.WARNING("**BT** exceeding child count"); return(this); } _children.Add(node); //node._parent = this; return(this); }