day transition is now working

This commit is contained in:
dhain 2022-06-09 16:49:15 +02:00
parent a53857c4d2
commit 7b286bcfd9
13 changed files with 390 additions and 388 deletions

View file

@ -1,5 +1,7 @@
using System;
using System.Linq;
using UnityEngine;
using UnityEngine.EventSystems;
public class InventoryUI : MonoBehaviour {
public Transform itemsParent;
@ -34,8 +36,12 @@ public class InventoryUI : MonoBehaviour {
*/
private void ToggleInventory() {
inventoryUI.SetActive(!inventoryUI.activeSelf);
HoverManager.instance.HideDescription();
foreach(InventorySlot slot in _slots) {
slot.ChangeItemSelectedSprite(false);
}
}
//TODO: sell Items with right click and when shop is open
/**
* Is called when something in the Inventory UI should update
*/