void IAction <T> .Execute(T context) { var action = _reasoner.Select(context); if (action != null) { action.Execute(context); } }
public void Tick() { _elapsedTime -= Time.DeltaTime; while (_elapsedTime <= 0) { _elapsedTime += UpdatePeriod; var action = _rootReasoner.Select(_context); if (action != null) { action.Execute(_context); } } }