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

@@ -8,5 +8,15 @@ public class Item : ScriptableObject
public string uuid;
public string itemName;
public int quantity = 1;
public bool stackable = true;
public int maxStackSize = 100;
private void OnEnable()
{
if (!stackable)
{
maxStackSize = 1;
}
}
}