3DTD/Assets/Scripts/Manager/TowerCollection.cs

15 lines
326 B
C#

using UnityEngine;
[CreateAssetMenu(fileName = "New TowerCollection", menuName = "Tower Defense/Tower Enemies")]
public class TowerCollection : ScriptableObject
{
public TowerInfo[] Towers;
}
[System.Serializable]
public struct TowerInfo
{
public string name;
public int price;
public GameObject prefab;
}