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

19 lines
404 B
C#
Raw Permalink Normal View History

2024-04-21 05:59:29 +02:00
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;
2024-04-21 14:04:42 +02:00
public int damage;
2024-04-21 05:59:29 +02:00
public float moveSpeed;
public bool FlyPath;
2024-04-21 09:40:42 +02:00
public float feetOffset;
2024-04-21 05:59:29 +02:00
public GameObject prefab;
}