Item

 avatar
user_3183455
csharp
7 days ago
708 B
1
Indexable
Never
using UnityEngine;
 
namespace CuongMono.Item
{
    public abstract class Item : ScriptableObject
    {
        [Header("Item")]
        [SerializeField] protected string m_name = "";
        [SerializeField] protected Sprite icon;
        [SerializeField] protected Rarity rarity;
        [SerializeField] protected ItemType type;
        [SerializeField] protected int maxStack = 1;
        [SerializeField] protected int maxDurance = 1;
 
        public int MaxDurance => maxDurance;
        public int MaxStack => maxStack;
        public Rarity Rarity => rarity;
        public ItemType Type => type;
        public string Name => m_name;
        public Sprite Icon => icon;
    }
}
Leave a Comment