public override void Activate(BTDatabase database) { base.Activate(database); _primaryChild.Activate(database); ResetRuningChildren(); }
public override void Activate() { base.Activate(); _primaryChild.Activate(); ResetRuningChildren(); }
public void Initialize(BTDatabase data) { _database = data; if (_root.name == null) { _root.name = "Root"; } _root.Activate(_database); }
void Start() { _root = Init(); if (_root.name == null) { _root.name = "Root"; } _root.Activate(_database); }
public BTTree(BTNode root, BTDatabase data) { mRoot = root; mDatabase = data; if (mRoot.Name == null) { mRoot.Name = "Root"; } mRoot.Activate(mDatabase); }
public override void Activate(BTDatabase database) { base.Activate(database); for (int i = 0, max = ChildNodes.Count; i < max; ++i) { BTNode tmpNode = ChildNodes[i]; if (null != tmpNode) { tmpNode.Activate(database); } } }