public override void Activate(BTDatabase database) { base.Activate(database); _precondition1.Activate(database); _precondition2.Activate(database); }
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; }