void MakeRequests(int count)
 {
     if ((count + m_Offset) % DecisionPeriod == 0)
     {
         m_Agent?.RequestDecision();
     }
     if (TakeActionsBetweenDecisions)
     {
         m_Agent?.RequestAction();
     }
 }
Exemplo n.º 2
0
 void MakeRequests(int count)
 {
     if ((count + m_Offset) % DecisionPeriod == 0)
     {
         m_Agent?.RequestDecision();
     }
     if (RepeatAction)
     {
         m_Agent?.RequestAction();
     }
 }
Exemplo n.º 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();
     }
 }