public override void Run()
    {
        //Uncomment this to get further testing information
        //if (m_root.m_debugging)
        //    Debug.Log(this.ToString());

        if (m_conditon.Invoke(m_blackboard))
        {
            m_rightNode.Run();
        }
        else
        {
            m_leftNode.Run();
        }
    }
示例#2
0
 /// <summary>
 /// Run through the decision tree to take action
 /// </summary>
 public void Traverse()
 {
     m_decisionTreeRoot.Run();
 }