21 lines
357 B
C#
21 lines
357 B
C#
using UnityEngine;
|
|
|
|
public enum WeaponType
|
|
{
|
|
Magic,
|
|
Melee
|
|
}
|
|
|
|
[CreateAssetMenu(fileName = "Weapon_")]
|
|
public class Weapon : ScriptableObject
|
|
{
|
|
[Header("Config")]
|
|
public Sprite Icon;
|
|
public WeaponType WeaponType;
|
|
public float Damage;
|
|
|
|
[Header("Projectile")]
|
|
public Projectile ProjectilePrefab;
|
|
public float RequiredMana;
|
|
}
|