using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UIElements; public class InventoryScreen : MonoBehaviour { [SerializeField] private VisualTreeAsset uiItemAsset; private UIDocument uiDocument; private VisualElement root; private VisualElement itemList; private Label headerLabel; private Label footerLabel; private IInventoryHolder inventoryHolder; private IInventoryHolder targetInventoryHolder; void OnEnable() { uiDocument = GetComponent(); root = uiDocument.rootVisualElement; var inventory = root.Q("Inventory"); root.style.display = DisplayStyle.None; itemList = inventory.Q("Inventory").Q("ContainerScroll"); headerLabel = inventory.Q