3DTD/Assets/Scripts/Classes/EnemyCollection.cs

17 lines
352 B
C#

using UnityEngine;
[CreateAssetMenu(fileName = "EnemyCollection", menuName = "Tower Defense/Enemy Enemies")]
public class EnemyCollection : ScriptableObject
{
public EnemyInfo[] Enemies;
}
[System.Serializable]
public struct EnemyInfo
{
public string name;
public float moveSpeed;
public bool FlyPath;
public GameObject prefab;
}