diff --git a/unity-environment/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs b/unity-environment/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs index 3f4ab2ef4b..60056548cd 100644 --- a/unity-environment/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs +++ b/unity-environment/Assets/ML-Agents/Examples/WallJump/Scripts/WallJumpAgent.cs @@ -244,7 +244,7 @@ public override void AgentAction(float[] vectorAction, string textAction) } // Detect when the agent hits the goal - void OnTriggerEnter(Collider col) + void OnTriggerStay(Collider col) { if (col.gameObject.CompareTag("goal") && DoGroundCheck(0.4f)) {