mirror of
https://github.com/DerTyp7/harvestdale-unity.git
synced 2025-10-30 04:57:09 +01:00
added basic inventory system
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user