From 3f855c474c46eea8f9228c79680d0a6fac09d6c0 Mon Sep 17 00:00:00 2001 From: eshvk <807898+eshvk@users.noreply.github.com> Date: Fri, 15 Jun 2018 15:09:57 -0700 Subject: [PATCH] [Hotfix] Remove code in PushAgentBasic that presumes that there is only one brain --- .../ML-Agents/Examples/PushBlock/Scripts/PushAgentBasic.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/unity-environment/Assets/ML-Agents/Examples/PushBlock/Scripts/PushAgentBasic.cs b/unity-environment/Assets/ML-Agents/Examples/PushBlock/Scripts/PushAgentBasic.cs index a7c8ccf991..1dfd1fd527 100755 --- a/unity-environment/Assets/ML-Agents/Examples/PushBlock/Scripts/PushAgentBasic.cs +++ b/unity-environment/Assets/ML-Agents/Examples/PushBlock/Scripts/PushAgentBasic.cs @@ -52,8 +52,6 @@ public class PushAgentBasic : Agent void Awake() { - // There is one brain in the scene so this should find our brain. - brain = FindObjectOfType(); academy = FindObjectOfType(); //cache the academy }