19 lines
404 B
C#
19 lines
404 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 int damage;
|
|
public float moveSpeed;
|
|
public bool FlyPath;
|
|
public float feetOffset;
|
|
public GameObject prefab;
|
|
}
|