24 lines
606 B
C#
24 lines
606 B
C#
using UnityEngine;
|
|
|
|
namespace OTG.Lab06.Abilities
|
|
{
|
|
[CreateAssetMenu(menuName = "OTG/Lab06/Ability Data", fileName = "AbilityData")]
|
|
public sealed class AbilityData : ScriptableObject
|
|
{
|
|
[Header("Identity")]
|
|
public string abilityId;
|
|
public string abilityName;
|
|
[TextArea(2, 5)] public string description;
|
|
public Sprite icon;
|
|
|
|
[Header("Numbers")]
|
|
public float manaCost;
|
|
public float cooldown;
|
|
public float damage;
|
|
public float castRange;
|
|
|
|
[Header("Behaviour")]
|
|
public GameObject effectPrefab;
|
|
}
|
|
}
|