コード例 #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);
         }
     }
 }
コード例 #3
0
        public void Process()
        {
            var action = RootReasoner.Select(_context);

            action.Execute(_context);
        }