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

15 lines
329 B
C#
Raw Normal View History

2024-04-20 23:55:50 +02:00
using UnityEngine;
[CreateAssetMenu(fileName = "New TowerCollection", menuName = "Tower Defense/Tower Collection")]
public class TowerCollection : ScriptableObject
{
public TowerInfo[] Towers;
}
[System.Serializable]
public struct TowerInfo
{
public string name;
public int price;
public GameObject prefab;
}