Files
harvestdale-unity/Assets/Scripts/InventoryItem.cs
Janis ae0b21f9e9 a
2023-03-01 22:28:06 +01:00

18 lines
367 B
C#

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<TItem> where TItem : Item
{
public TItem item;
public int count;
public InventoryItem(TItem item, int count)
{
this.item = item;
this.count = count;
}
}