mirror of
https://github.com/DerTyp7/harvestdale-unity.git
synced 2025-10-30 13:07:10 +01:00
hotbar
This commit is contained in:
@@ -12,12 +12,15 @@ public class InventoryUI : GuiPanel
|
||||
|
||||
private void Start()
|
||||
{
|
||||
playerInventory = GameObject.FindGameObjectWithTag("Player").GetComponent<Inventory>();
|
||||
Inventory.OnPlayerInventoryChanged += UpdateSlots;
|
||||
CreateSlots();
|
||||
}
|
||||
public override void OnOpen()
|
||||
{
|
||||
if (slotUIList.Count == 0)
|
||||
{
|
||||
playerInventory = GameObject.FindGameObjectWithTag("Player").GetComponent<Inventory>();
|
||||
CreateSlots();
|
||||
}
|
||||
UpdateSlots();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user