using UnityEngine; [CreateAssetMenu(fileName = "New LevelDefinition", menuName = "Tower Defense/Level Definition")] public class LevelDefinition : ScriptableObject { public Wave[] Waves; } [System.Serializable] public struct Wave { public float spawnTime; public SpawnGroup[] groups; } [System.Serializable] public struct SpawnGroup { public int enemyIndex; // Check in enemy collection public int num; public float spawnInterval; }