浏览代码

[Hotfix] Remove code in PushAgentBasic that presumes that there is only one brain

/develop-generalizationTraining-TrainerController
eshvk 7 年前
当前提交
2dd658e3
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 2
      unity-environment/Assets/ML-Agents/Examples/PushBlock/Scripts/PushAgentBasic.cs

2
unity-environment/Assets/ML-Agents/Examples/PushBlock/Scripts/PushAgentBasic.cs


void Awake()
{
// There is one brain in the scene so this should find our brain.
brain = FindObjectOfType<Brain>();
academy = FindObjectOfType<PushBlockAcademy>(); //cache the academy
}

正在加载...
取消
保存