From ad24a7f685ddbbc60d27f42a3874ab198c38cf5b Mon Sep 17 00:00:00 2001 From: Brian L Date: Sun, 24 Mar 2019 05:16:18 -0400 Subject: [PATCH 1/2] Change UnityEngine namespace requirements --- Svelto.ECS/Common/Components/ECSRect.cs | 1 + Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Svelto.ECS/Common/Components/ECSRect.cs b/Svelto.ECS/Common/Components/ECSRect.cs index 29f2a54..063c3c5 100644 --- a/Svelto.ECS/Common/Components/ECSRect.cs +++ b/Svelto.ECS/Common/Components/ECSRect.cs @@ -1,3 +1,4 @@ +#if UNITY_5 || UNITY_5_3_OR_NEWER using UnityEngine; namespace Svelto.ECS.Components diff --git a/Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs b/Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs index 80312b6..6290e3b 100644 --- a/Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs +++ b/Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs @@ -1,6 +1,6 @@ +#if UNITY_5 || UNITY_5_3_OR_NEWER using UnityEngine; -#if UNITY_5 || UNITY_5_3_OR_NEWER namespace Svelto.ECS.Unity { public class GenericEntityDescriptorHolder: From ac4897d52a34c03cee48a4c50b20d0a938d3bd18 Mon Sep 17 00:00:00 2001 From: Brian L Date: Sun, 24 Mar 2019 09:36:27 -0400 Subject: [PATCH 2/2] Update ECSRect.cs --- Svelto.ECS/Common/Components/ECSRect.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Svelto.ECS/Common/Components/ECSRect.cs b/Svelto.ECS/Common/Components/ECSRect.cs index 063c3c5..13daa82 100644 --- a/Svelto.ECS/Common/Components/ECSRect.cs +++ b/Svelto.ECS/Common/Components/ECSRect.cs @@ -15,4 +15,5 @@ namespace Svelto.ECS.Components height = imageUvRect.height; } } -} \ No newline at end of file +} +#endif