- Refactor items from predefined scriptables only, to template based into item instances - Added equipped item tooltip to facilitate comparing items - Added modular craftable items
22 lines
431 B
C#
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);
|
|
}
|
|
}
|
|
}
|