Added a limit to how many monsters are created per lane Unfixed issue where SpawnOnStart breaks the system
22 lines
696 B
C#
22 lines
696 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
|
|
- GameDuration : Duration of the game, in minutes
|
|
- Usage : Drop this config into a level
|
|
- 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.", MessageType.None);
|
|
base.OnInspectorGUI();
|
|
}
|
|
}
|
|
} |