예제 #1
0
파일: GBTFight.cs 프로젝트: guccang/GBT
        public void SwitchTo(GBTNode tree)
        {
            if (null == tree)
            {
                return;
            }

            if (_root != null)
            {
                _root.Transition();
            }

            SetCurrentTree(tree);
        }
예제 #2
0
파일: GBTFight.cs 프로젝트: guccang/GBT
        public void SetCurrentTree(GBTNode tree)
        {
            _bb.SetInt("bbIdleCnt", 3);
            _root = tree;
            _root.Transition();

            _root.SetBB(_bb);
            _root.SetKey("root:" + tree.ToString());
        }