Пример #1
0
        public override int CountAllForStatus(BehaviourTreeStatus aStatus)
        {
            // return a count of the status for all nodes under the current node that have the
            // specified status value
            int numCount = 0;

            if (currentStatus == aStatus)
            {
                ++numCount;
            }
            numCount += childNode.CountAllForStatus(aStatus);
            return(numCount);
        }