void MakeRequests(int count)
 {
     if ((count + m_Offset) % DecisionPeriod == 0)
     {
         m_Agent?.RequestDecision();
     }
     if (TakeActionsBetweenDecisions)
     {
         m_Agent?.RequestAction();
     }
 }
 void MakeRequests(int count)
 {
     if ((count + m_Offset) % DecisionPeriod == 0)
     {
         m_Agent?.RequestDecision();
     }
     if (RepeatAction)
     {
         m_Agent?.RequestAction();
     }
 }
Beispiel #3
0
 /// <summary>
 /// Method that hooks into the Academy in order inform the Agent on whether or not it should request a
 /// decision, and whether or not it should take actions between decisions.
 /// </summary>
 /// <param name="academyStepCount">The current step count of the academy.</param>
 void MakeRequests(int academyStepCount)
 {
     if (academyStepCount % DecisionPeriod == 0)
     {
         m_Agent?.RequestDecision();
     }
     if (TakeActionsBetweenDecisions)
     {
         m_Agent?.RequestAction();
     }
 }