Example #1
0
        private void UnInstantiatePars(Agent pAgent)
        {
            BehaviorNode node = this.m_node;

            if (node != null && node.m_pars != null)
            {
                for (int i = 0; i < node.m_pars.Count; i++)
                {
                    Property property = node.m_pars[i];
                    property.UnInstantiate(pAgent);
                }
            }
        }
Example #2
0
        private void UnInstantiatePars(Agent pAgent)
        {
            BehaviorNode pNode = this.m_node;

            //pNode could be 0 when the bt is a sub tree of parallel node/referenced bt, etc.
            if (pNode != null && pNode.m_pars != null)
            {
                for (int i = 0; i < pNode.m_pars.Count; ++i)
                {
                    Property property_ = pNode.m_pars[i];
                    property_.UnInstantiate(pAgent);
                }
            }
        }