Exemplo n.º 1
0
 void Start()
 {
     // Create a copy of the behaviour tree so we can indivudually set values
     behaviourTree = (BehaviourTree)behaviourTree.Copy();
     XNode.Node entry = ((BehaviourTree)behaviourTree.Copy()).FindEntryNode();
     behaviourTreeRoot = (BehaviourNode)entry.GetOutputPort("child").GetConnection(0).node;
     behaviourTreeRoot.Reset();
 }