using System.Collections; using System.Collections.Generic; using UnityEngine; public class UI_Inventory : MonoBehaviour { private Inventory inventory; private void Awake() { } public void SetInventory(Inventory _inventory) { inventory = _inventory; inventory.OnItemListChanged += Inventory_OnItemListChanged; RefreshInventoryItems(); } private void Inventory_OnItemListChanged(object sender, System.EventArgs e) { RefreshInventoryItems(); } private void RefreshInventoryItems() { // TODO refresh UI } }