浏览代码

small fix

/develop/cc-teammanager
Ruo-Ping Dong 3 年前
当前提交
3f2aff32
共有 1 个文件被更改,包括 3 次插入6 次删除
  1. 9
      com.unity.ml-agents/Runtime/Agent.cs

9
com.unity.ml-agents/Runtime/Agent.cs


new int[m_ActuatorManager.NumDiscreteActions]
);
if (m_TeamManager != null)
{
m_Info.teamManagerId = m_TeamManager.GetId();
}
// The first time the Academy resets, all Agents in the scene will be
// forced to reset through the <see cref="AgentForceReset"/> event.
// To avoid the Agent resetting twice, the Agents will not begin their

}
else
{
SendDoneToTrainer();
// We request a decision so Python knows the Agent is done immediately
m_Brain?.RequestDecision(m_Info, sensors);
ResetSensors();
}
// We also have to write any to any DemonstationStores so that they get the "done" flag.

正在加载...
取消
保存