mirror of
https://github.com/DerTyp7/harvestdale-unity.git
synced 2025-10-30 13:07:10 +01:00
added basic inventory system
This commit is contained in:
18
Assets/Scripts/InventoryItem.cs
Normal file
18
Assets/Scripts/InventoryItem.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user