예제 #1
0
        void IAction <T> .Execute(T context)
        {
            var action = _reasoner.Select(context);

            if (action != null)
            {
                action.Execute(context);
            }
        }
예제 #2
0
 public void Tick()
 {
     _elapsedTime -= Time.DeltaTime;
     while (_elapsedTime <= 0)
     {
         _elapsedTime += UpdatePeriod;
         var action = _rootReasoner.Select(_context);
         if (action != null)
         {
             action.Execute(_context);
         }
     }
 }