예제 #1
0
        public override void Activate(BTDatabase database)
        {
            base.Activate(database);

            _precondition1.Activate(database);
            _precondition2.Activate(database);
        }
예제 #2
0
        public virtual void Activate(BTDatabase database)
        {
            if (activated)
            {
                return;
            }

            this.database = database;
            //			Init();

            if (precondition != null)
            {
                precondition.Activate(database);
            }
            if (_children != null)
            {
                for (int i = 0; i < _children.Count; ++i)
                {
                    _children[i].Activate(database);
                }
            }

            activated = true;
        }