using System.Collections; using System.Collections.Generic; using UnityEngine; public class PI_InventoryItem : MonoBehaviour { public TMPro.TMP_Text itemName; public TMPro.TMP_Text itemDescription; public TMPro.TMP_Text itemCount; public TMPro.TMP_Text isConsumable; TWS_PlayerInventoryItem_Data currentItemData; void PopulateItemData(TWS_PlayerInventoryItem_Data data) { currentItemData = data; itemName.text = data.itemMetaData.itemName; itemDescription.text = data.itemMetaData.itemDescription; itemCount.text = data.itemCount.ToString(); isConsumable.text = "Consumeable? " + data.isConsumeable; } }