void IAction <T> .execute(T context)
        {
            var action = _reasoner.select(context);

            if (action != null)
            {
                action.execute(context);
            }
        }
Example #2
0
 public void tick()
 {
     _elapsedTime -= Time.deltaTime;
     while (_elapsedTime <= 0)
     {
         _elapsedTime += updatePeriod;
         var action = _rootReasoner.select(_context);
         if (action != null)
         {
             action.execute(_context);
         }
     }
 }