コード例 #1
0
        public override void onReport(TezBTNode node, Result result)
        {
            switch (result)
            {
            case Result.Success:
                m_SuccessCount++;
                if (m_SuccessCount == this.childrenCount)
                {
                    this.reset();
                    this.report(Result.Success);
                }
                break;

            case Result.Fail:
                m_Running = false;
                this.reset();
                this.report(Result.Fail);
                break;

            case Result.Running:
                break;

            default:
                break;
            }
        }
コード例 #2
0
        public override void addNode(TezBTNode node)
        {
            ///
            if (node.GetType() == this.GetType())
            {
                throw new System.Exception();
            }

            base.addNode(node);
        }