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