River Jiang
2020-10-22 01fe52bc3f5df9924b26426c27a4277f4848f071
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using UnityEngine;
 
namespace TowerDefense.Towers.Data
{
    /// <summary>
    /// Data container for settings per tower level
    /// </summary>
    [CreateAssetMenu(fileName = "TowerData.asset", menuName = "TowerDefense/Tower Configuration", order = 1)]
    public class TowerLevelData : ScriptableObject
    {
        /// <summary>
        /// A description of the tower for displaying on the UI
        /// </summary>
        public string description;
 
        /// <summary>
        /// A description of the tower for displaying on the UI
        /// </summary>
        public string upgradeDescription;
 
        /// <summary>
        /// The cost to upgrade to this level
        /// </summary>
        public int cost;
 
        /// <summary>
        /// The sell cost of the tower
        /// </summary>
        public int sell;
 
        /// <summary>
        /// The max health
        /// </summary>
        public int maxHealth;
 
        /// <summary>
        /// The starting health
        /// </summary>
        public int startingHealth;
 
        /// <summary>
        /// The tower icon
        /// </summary>
        public Sprite icon;
    }
}