did i really spend less than an hour working on this game over the course of an entire week? yes!

This commit is contained in:
Sylvia 2026-08-28 23:30:08 -07:00
parent b842289076
commit 4a80a6ed0f
10 changed files with 113 additions and 1 deletions

View file

@ -0,0 +1,15 @@
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class CraftingRequirementUIObject : MonoBehaviour
{
public TextMeshProUGUI amountText;
public Image itemIcon;
public void SetObject(Item itemToSet, int amount)
{
amountText.text = amount.ToString();
itemIcon.sprite = itemToSet.icon;
}
}