diff --git a/unity/Assets/enemy/SpawnPointGenerator.cs b/unity/Assets/enemy/SpawnPointGenerator.cs index b739274..7d89208 100644 --- a/unity/Assets/enemy/SpawnPointGenerator.cs +++ b/unity/Assets/enemy/SpawnPointGenerator.cs @@ -1,6 +1,8 @@ using System.Collections.Generic; using UnityEngine; +#if UNITY_EDITOR using UnityEditor; +#endif using IndianOceanAssets.Engine2_5D; namespace IndianOceanAssets.EditorTools @@ -127,6 +129,7 @@ namespace IndianOceanAssets.EditorTools } } +#if UNITY_EDITOR [CustomEditor(typeof(SpawnPointGenerator))] public class SpawnPointGeneratorEditor : UnityEditor.Editor { @@ -348,4 +351,5 @@ namespace IndianOceanAssets.EditorTools return Vector3.Distance(new Vector3(p.x, 0, p.z), new Vector3(proj.x, 0, proj.z)); } } +#endif }