From afeebf294a609e303e7ec9eae4a928fbac0eea33 Mon Sep 17 00:00:00 2001 From: shadow8t4 Date: Thu, 19 Apr 2018 10:52:28 -0500 Subject: [PATCH] Added #if to fix build on my computer. --- MoCha/Assets/Scripts/InventoryEditor.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MoCha/Assets/Scripts/InventoryEditor.cs b/MoCha/Assets/Scripts/InventoryEditor.cs index 46a379e..4370fa0 100644 --- a/MoCha/Assets/Scripts/InventoryEditor.cs +++ b/MoCha/Assets/Scripts/InventoryEditor.cs @@ -1,4 +1,5 @@ using UnityEngine; +#if UNITY_EDITOR using UnityEditor; [CustomEditor(typeof(Inventory))] public class InventoryEditor : Editor @@ -36,4 +37,5 @@ public class InventoryEditor : Editor EditorGUI.indentLevel--; EditorGUILayout.EndVertical (); } -} \ No newline at end of file +} +#endif \ No newline at end of file