Created Serializable class GroupList in WaveConfig.cs to contain multiple enemy types per group
24 lines
824 B
C#
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();
|
|
}
|
|
}
|
|
} |