public void CheckAndTransition(AIUnit unit) { foreach (var item in _decisions) { if (item.MakeDecision(unit) == false) { return; } } unit.ChangeState(_StateToTransitionIfTrue); }
public void CheckAndTransition(AIUnit unit) { foreach (var item in _decisions) { if (item.MakeDecision(unit) == false) { return; } } unit.ChangeState(_StateToTransitionIfTrue); }