Item

 avatar
user_3183455
csharp
a year ago
708 B
6
Indexable
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;
    }
}
Editor is loading...
Leave a Comment