added Item changing Sprite when hovering over Slot in Shop or Inventory

This commit is contained in:
dhain 2022-06-03 09:29:24 +02:00
parent fe63511825
commit 24fa26ddb2
11 changed files with 46 additions and 23 deletions

View file

@ -15,13 +15,13 @@ public class Inventory : ItemStorage {
#endregion
public const int InventorySpace = 28;
private const int _InventorySpace = 28;
/**
* Adds the specified amount of items to the Inventory
*/
public override void AddItem(Item item, int amount) {
if(items.Count >= InventorySpace) {
if(items.Count >= _InventorySpace) {
Debug.Log("Not enough inventory space!");
return;
}