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; } }
public override void OnBeRemoved() { base.OnBeRemoved(); Tree = null; }