浏览代码

fix MissingReferenceException in GridWorld (#3346)

/asymm-envs
GitHub 5 年前
当前提交
3bd57902
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Project/Assets/ML-Agents/Examples/GridWorld/Scripts/GridAgent.cs

2
Project/Assets/ML-Agents/Examples/GridWorld/Scripts/GridAgent.cs


SetReward(1f);
Done();
}
if (hit.Where(col => col.gameObject.CompareTag("pit")).ToArray().Length == 1)
else if (hit.Where(col => col.gameObject.CompareTag("pit")).ToArray().Length == 1)
{
SetReward(-1f);
Done();

正在加载...
取消
保存