RiftMayhem/Assets/Scripts/Drops/EquippableItemDrop.cs

20 lines
384 B
C#

using Kryz.CharacterStats.Examples;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EquippableItemDrop : Interactable
{
public Item itemDrop;
public override void Interact(bool melee)
{
base.Interact(melee);
if (FindObjectOfType<Inventory>().AddItem(itemDrop))
Destroy(this.gameObject);
}
}