added basic inventory system

This commit is contained in:
Janis
2023-02-20 20:26:55 +01:00
parent b92e575f71
commit 0b5f3d445f
15 changed files with 273 additions and 21 deletions

View File

@@ -0,0 +1,18 @@
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
// represents an item in the inventory and its count
[System.Serializable]
public class InventoryItem
{
public Item item;
public int count;
public InventoryItem(Item item, int count)
{
this.item = item;
this.count = count;
}
}