You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
681 B
C#
25 lines
681 B
C#
3 weeks ago
|
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;
|
||
|
}
|
||
|
}
|