private void InstantiatePars(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.Instantiate(pAgent); } } }
private void InstantiatePars(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]; // if(pAgent != null && property_.GetVariableName() == "par0_char_0") // { // behaviac.Debug.Check(true); // } property_.Instantiate(pAgent); } } }