Ejemplo n.º 1
0
        private void RebiuldTree()
        {
            var temp = CreateTreeNode();

            if (temp == null)
            {
                CLog.Error("没有创建BTTree!!!!");
                return;
            }
            Tree = new AI.BT.Tree(temp);
        }
 void InitBT()
 {
     Tree = charaModel.GetTree();
     if (Tree != null)
     {
         Root = Tree.Root;
         Tree.ExcudeAllNodeForInspector();
         succ.richText          = true;
         succ.normal.textColor  = Color.green;
         reset.richText         = true;
         reset.normal.textColor = Color.grey;
         fail.richText          = true;
         fail.normal.textColor  = Color.red;
         run.richText           = true;
         run.normal.textColor   = Color.yellow;
     }
 }
Ejemplo n.º 3
0
 public override void OnBeRemoved()
 {
     base.OnBeRemoved();
     Tree = null;
 }