コード例 #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());
        }