Example #1
0
        public override void reset()
        {
            _isFirstExe = true;
            base.reset();
            int count = childs.Count;

            for (int i = count - 1; i > 0; i--)
            {
                BTNode child = childs [i];
                if (child._isRunTimeNode)
                {
                    removeChild(child);
                }
                else
                {
                    child.reset();
                }
            }
        }