using Kryz.CharacterStats.Examples; using System.Collections; using System.Collections.Generic; using UnityEngine; public class EquippableItemDrop : Interactable { public ItemInstance itemDrop; public override void Interact(bool melee) { base.Interact(melee); Debug.Log("Interacting with item: " + this.name + " " + itemDrop.ItemName); if (FindObjectOfType().AddItem(itemDrop)) { Debug.Log("Interacting with item: " + this.name + " " + itemDrop.ItemName + " found inventory and added it"); Destroy(this.gameObject); } } }