1234567891011121314151617181920212223242526272829303132333435 |
- 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
- }
-
-
- }
|