浏览代码

Edits to HallwayCollab

/comms-grad
Ervin Teng 4 年前
当前提交
28838c02
共有 2 个文件被更改,包括 11 次插入3 次删除
  1. 5
      Project/Assets/ML-Agents/Examples/Hallway/Scenes/HallwayCollab.unity
  2. 9
      Project/Assets/ML-Agents/Examples/Hallway/Scripts/HallwayCollabAgent.cs

5
Project/Assets/ML-Agents/Examples/Hallway/Scenes/HallwayCollab.unity


propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3849025303538859997, guid: f3a451555dc514f46a69319857762eda,
type: 3}
propertyPath: m_BehaviorType
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: f3a451555dc514f46a69319857762eda, type: 3}
--- !u!1001 &2143733088

9
Project/Assets/ML-Agents/Examples/Hallway/Scripts/HallwayCollabAgent.cs


int m_Message = 0;
[HideInInspector]
public float selection = 0;
public int selection = 0;
// Set initial message to random to avoid initialization issues
m_Message = Random.Range(0, 2);
m_Message = -1;
var agentOffset = 15f;
if (isSpotter)

MoveAgent(actionBuffers.DiscreteActions);
int comm_act = actionBuffers.DiscreteActions[1];
teammate.tellAgent(comm_act);
// if (isSpotter) // Test
// {
// teammate.tellAgent(selection);
// }
}
void OnCollisionEnter(Collision col)

正在加载...
取消
保存