From 47f954f98e63ae17d743e4e577730069808644b5 Mon Sep 17 00:00:00 2001 From: JA <1323160571@qq.com> Date: Mon, 6 Jul 2026 01:06:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unity/Assets/enemy/SpawnPointGenerator.cs | 4 ++++ 1 file changed, 4 insertions(+) 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 }