gather-and-defend/Assets/Editor/WaveConfigCustomInspector.cs
Ader Alisma 01 749d2c5643 Finished group spawn
Created Serializable class GroupList in WaveConfig.cs to contain multiple enemy types per group
2023-10-18 20:31:57 -04:00

24 lines
824 B
C#

using UnityEditor;
namespace GatherAndDefend.LevelEditor
{
[CustomEditor(typeof(WaveConfig))]
public class WaveConfigCustomInspector : Editor
{
public override void OnInspectorGUI()
{
EditorGUILayout.HelpBox(@"How to use :
- ConstantSpawn: Drag the chosen Enemy and insert the number to make in Count
- GroupSpawn: Each group contains enemies, and the time to trigger in float format for minutes.
- GameDuration : Duration of the game, in minutes
- Usage : Drop this config into a level
- The creation interval is determined by the game duration and the number of enemies to create
Important consideration :
- You must assign at least 1 enemy of Count of at least 1 to play.
- GameDuration cannot be 0.", MessageType.None);
base.OnInspectorGUI();
}
}
}