using UnityEngine.UI; using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class SellMenu : MonoBehaviour { [Header("Labels")] public TMP_Text usernameTxt; public TMP_Text coinsTxt; public TMP_Text gemsTxt; [Header("Content")] public Transform inventoryParent; public Sprite emptySlotImage; public Image selectedItemImg; void Start() { Refresh(); } // Update is called once per frame void Update() { } public void Refresh(){ usernameTxt.text = DBmanager.username; coinsTxt.text = DBmanager.Coins.ToString(); gemsTxt.text = DBmanager.Gems.ToString(); Button[] inventorySlots = inventoryParent.GetComponentsInChildren