Skip to content

Commit a27e9b1

Browse files
committed
Fix defines.
1 parent f0ce925 commit a27e9b1

File tree

7 files changed

+48
-11
lines changed

7 files changed

+48
-11
lines changed

com.unity.ml-agents/Runtime/MLAgentsDefines.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensor.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#if MLA_UNITY_PHYSICS_MODULE || !UNITY_2019_4_OR_NEWER
2+
#define MLA_UNITY_PHYSICS_MODULE_ENABLED
3+
#endif
4+
5+
#if MLA_UNITY_PHYSICS2D_MODULE || !UNITY_2019_4_OR_NEWER
6+
#define MLA_UNITY_PHYSICS2D_MODULE_ENABLED
7+
#endif
8+
19
using System;
210
using System.Collections.Generic;
311
using UnityEngine;

com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponent2D.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#if MLA_UNITY_PHYSICS_MODULE || !UNITY_2019_4_OR_NEWER
2+
#define MLA_UNITY_PHYSICS_MODULE_ENABLED
3+
#endif
4+
5+
#if MLA_UNITY_PHYSICS2D_MODULE || !UNITY_2019_4_OR_NEWER
6+
#define MLA_UNITY_PHYSICS2D_MODULE_ENABLED
7+
#endif
8+
19
#if MLA_UNITY_PHYSICS2D_MODULE_ENABLED
210
using UnityEngine;
311

com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponent3D.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#if MLA_UNITY_PHYSICS_MODULE || !UNITY_2019_4_OR_NEWER
2+
#define MLA_UNITY_PHYSICS_MODULE_ENABLED
3+
#endif
4+
5+
#if MLA_UNITY_PHYSICS2D_MODULE || !UNITY_2019_4_OR_NEWER
6+
#define MLA_UNITY_PHYSICS2D_MODULE_ENABLED
7+
#endif
8+
19
#if MLA_UNITY_PHYSICS_MODULE_ENABLED
210
using UnityEngine;
311
using UnityEngine.Serialization;

com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponentBase.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#if MLA_UNITY_PHYSICS_MODULE || !UNITY_2019_4_OR_NEWER
2+
#define MLA_UNITY_PHYSICS_MODULE_ENABLED
3+
#endif
4+
5+
#if MLA_UNITY_PHYSICS2D_MODULE || !UNITY_2019_4_OR_NEWER
6+
#define MLA_UNITY_PHYSICS2D_MODULE_ENABLED
7+
#endif
8+
19
using System;
210
using System.Collections.Generic;
311
using UnityEngine;

com.unity.ml-agents/Tests/Editor/PublicAPI/PublicApiValidation.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#if MLA_UNITY_PHYSICS_MODULE || !UNITY_2019_4_OR_NEWER
2+
#define MLA_UNITY_PHYSICS_MODULE_ENABLED
3+
#endif
4+
5+
#if MLA_UNITY_PHYSICS2D_MODULE || !UNITY_2019_4_OR_NEWER
6+
#define MLA_UNITY_PHYSICS2D_MODULE_ENABLED
7+
#endif
8+
19
using System.Collections.Generic;
210
using Unity.MLAgents.Sensors;
311
using NUnit.Framework;

com.unity.ml-agents/Tests/Editor/Sensor/RayPerceptionSensorTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#if MLA_UNITY_PHYSICS_MODULE || !UNITY_2019_4_OR_NEWER
2+
#define MLA_UNITY_PHYSICS_MODULE_ENABLED
3+
#endif
4+
5+
#if MLA_UNITY_PHYSICS2D_MODULE || !UNITY_2019_4_OR_NEWER
6+
#define MLA_UNITY_PHYSICS2D_MODULE_ENABLED
7+
#endif
8+
19
using System;
210
using System.Collections.Generic;
311
using NUnit.Framework;

0 commit comments

Comments
 (0)