打包错误

This commit is contained in:
JA
2026-07-06 01:06:18 +08:00
parent 34cf55155c
commit 47f954f98e
@@ -1,6 +1,8 @@
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
#if UNITY_EDITOR
using UnityEditor; using UnityEditor;
#endif
using IndianOceanAssets.Engine2_5D; using IndianOceanAssets.Engine2_5D;
namespace IndianOceanAssets.EditorTools namespace IndianOceanAssets.EditorTools
@@ -127,6 +129,7 @@ namespace IndianOceanAssets.EditorTools
} }
} }
#if UNITY_EDITOR
[CustomEditor(typeof(SpawnPointGenerator))] [CustomEditor(typeof(SpawnPointGenerator))]
public class SpawnPointGeneratorEditor : UnityEditor.Editor 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)); return Vector3.Distance(new Vector3(p.x, 0, p.z), new Vector3(proj.x, 0, proj.z));
} }
} }
#endif
} }