21 lines
463 B
C#
21 lines
463 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "WaveData", menuName = "Combat/WaveData")]
|
|
public class WaveData : ScriptableObject
|
|
{
|
|
public string WaveName;
|
|
public List<SpawnEntry> Spawns = new();
|
|
public float TimeLimit = 30f;
|
|
public float SpawnInterval = 0.3f;
|
|
public float StartDelay = 0f;
|
|
}
|
|
|
|
[Serializable]
|
|
public class SpawnEntry
|
|
{
|
|
public Enemy EnemyPrefab;
|
|
public int Count = 1;
|
|
}
|