day transition is now working
This commit is contained in:
parent
a53857c4d2
commit
7b286bcfd9
13 changed files with 390 additions and 388 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue