浏览代码

End episode properly

/develop/collab-envs-exp-ervin
Ervin Teng 4 年前
当前提交
d7a0df82
共有 2 个文件被更改,包括 5 次插入4 次删除
  1. 8
      Project/Assets/ML-Agents/Examples/PushBlock/Scenes/1ZombieVs2AgentsPushBlock.unity
  2. 1
      Project/Assets/ML-Agents/Examples/PushBlock/Scripts/ZombiePushBlockDeathEnvController.cs

8
Project/Assets/ML-Agents/Examples/PushBlock/Scenes/1ZombieVs2AgentsPushBlock.unity


m_Script: {fileID: 11500000, guid: 7df9fa4d08b7d4d198d5165b07ddd47e, type: 3}
m_Name:
m_EditorClassIdentifier:
MaxEnvironmentSteps: 25000
MaxEnvironmentSteps: 5000
areaBounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}

m_Script: {fileID: 11500000, guid: 7df9fa4d08b7d4d198d5165b07ddd47e, type: 3}
m_Name:
m_EditorClassIdentifier:
MaxEnvironmentSteps: 25000
MaxEnvironmentSteps: 5000
areaBounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}

m_Script: {fileID: 11500000, guid: 7df9fa4d08b7d4d198d5165b07ddd47e, type: 3}
m_Name:
m_EditorClassIdentifier:
MaxEnvironmentSteps: 25000
MaxEnvironmentSteps: 5000
areaBounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}

m_Script: {fileID: 11500000, guid: 7df9fa4d08b7d4d198d5165b07ddd47e, type: 3}
m_Name:
m_EditorClassIdentifier:
MaxEnvironmentSteps: 25000
MaxEnvironmentSteps: 5000
areaBounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}

1
Project/Assets/ML-Agents/Examples/PushBlock/Scripts/ZombiePushBlockDeathEnvController.cs


{
//Give Agent Rewards
m_AgentGroup.AddGroupReward(-1);
m_AgentGroup.EndGroupEpisode();
// Swap ground material for a bit to indicate we scored.
StartCoroutine(GoalScoredSwapGroundMaterial(m_PushBlockSettings.failMaterial, 0.5f));
ResetScene();

正在加载...
取消
保存