Pedro Gomes 74a9c2b940 Major rework on items
- Refactor items from predefined scriptables only, to template based into item instances
- Added equipped item tooltip to facilitate comparing items
- Added modular craftable items
2025-01-03 19:40:35 +00:00

22 lines
431 B
C#

using UnityEngine.EventSystems;
namespace Kryz.CharacterStats.Examples
{
public class EquipmentSlot : ItemSlot
{
public EquipmentType EquipmentType;
protected override void OnValidate()
{
base.OnValidate();
gameObject.name = EquipmentType.ToString() + " Slot";
}
public override void OnPointerEnter(PointerEventData eventData)
{
EquippedItemTooltip.Instance.ShowTooltip(Item);
}
}
}