/// <inheritdoc />
 public float[] DecideAction()
 {
     if (!m_Done && m_DecisionRequested)
     {
         m_Heuristic.Invoke(m_LastDecision);
     }
     m_DecisionRequested = false;
     return(m_LastDecision);
 }
Example #2
0
 /// <inheritdoc />
 public void RequestDecision(AgentInfo info, List <ISensor> sensors)
 {
     StepSensors(sensors);
     if (!info.done)
     {
         // Reset m_LastDecision each time.
         m_LastDecision = new float[m_numActions];
         m_Heuristic.Invoke(m_LastDecision);
     }
 }