public void SwitchTo(GBTNode tree) { if (null == tree) { return; } if (_root != null) { _root.Transition(); } SetCurrentTree(tree); }
public void SetCurrentTree(GBTNode tree) { _bb.SetInt("bbIdleCnt", 3); _root = tree; _root.Transition(); _root.SetBB(_bb); _root.SetKey("root:" + tree.ToString()); }