25 lines
787 B
C#
25 lines
787 B
C#
|
|
using Minigames.Airplane.Core;
|
||
|
|
using Minigames.Airplane.Data;
|
||
|
|
using UnityEditor;
|
||
|
|
|
||
|
|
namespace Editor.CustomEditorsAndDrawers
|
||
|
|
{
|
||
|
|
[CustomEditor(typeof(AirplaneSpawnManager))]
|
||
|
|
public class AirplaneSpawnManagerEditor : UnityEditor.Editor
|
||
|
|
{
|
||
|
|
public override void OnInspectorGUI()
|
||
|
|
{
|
||
|
|
// Draw default inspector - all fields now have proper property drawers
|
||
|
|
DrawDefaultInspector();
|
||
|
|
|
||
|
|
// Add helpful info box
|
||
|
|
EditorGUILayout.Space();
|
||
|
|
EditorGUILayout.HelpBox(
|
||
|
|
"Each prefab now has its own spawn position configuration. " +
|
||
|
|
"Expand entries in Positive/Negative Object Prefabs to configure individual spawn behavior.",
|
||
|
|
MessageType.Info);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|