How can I Access both behaviour trees separetly from a script if I have 2 behaviour trees on the same object?

Ugur Tuna

New member
Hi, I want to have 2 behaviour trees on my NPC's to different behave in different situations. If I code: "
transform.GetComponent<BehaviorDesigner.Runtime.BehaviorTree>().enabled=false;" which one will it disable and which one will it enable? How can I access them from a script?
 
Top