using System.Collections; using System.Collections.Generic; using UnityEngine; using TRInventoryUpdatable; public class InventoryItem : MonoBehaviour { //public int placeOnList; //public string itemDescription = "∞"; //private void Awake() //{ // UpdateItemDescription(); //} public void UpdateItemDescription() { var updatable = transform.GetComponent(); if (updatable == null) return; updatable.InventoryUpdate(); } public void UseItem() { var updatable = transform.GetComponent(); if (updatable == null) return; updatable.Use(); } }