public void RemoveConditional(BTConditional conditional) { int index = _conditionals.IndexOf(conditional); _conditionals.Remove(conditional); _conditionalInverts.RemoveAt(index); }
public void AddConditional(BTConditional conditional, bool invertResult = false) { if (!_conditionals.Contains(conditional)) { _conditionals.Add(conditional); _conditionalInverts.Add(invertResult); } }
public BTConditionEvaluator(BTConditional conditional, BTNode child) : this(new List <BTConditional>() { conditional }, EBTLogic.And, child) { }
public void RemoveConditional (BTConditional conditional) { int index = _conditionals.IndexOf(conditional); _conditionals.Remove(conditional); _conditionalInverts.RemoveAt(index); }