浏览代码

update score logic

/hh-develop-pushblockcollab
HH 4 年前
当前提交
5e974bdd
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 8
      Project/Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockEnvController.cs

8
Project/Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockEnvController.cs


/// </summary>
public void ScoredAGoal(Collider col, float score)
{
print(col.name);
//Decrement the counter
//Are we done?
//Disable the block
item.Agent.AddReward(5f);
item.Agent.AddReward(score);
}
// Swap ground material for a bit to indicate we scored.

正在加载...
取消
保存