using System; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class Inventory : MonoBehaviour { public Transform inventorySlotsParent; public List lootDatas; playerNetwork playerNet; void Awake(){ playerNet = GetComponent(); } void Start(){ UpdateUI(); for(int i=0; i < inventorySlotsParent.childCount; i++){ int index =0; index = i; inventorySlotsParent.GetChild(i).GetChild(1).GetComponent