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); } } }