Files
harvestdale-unity/Assets/Scripts/Item.cs
2023-02-20 20:26:55 +01:00

22 lines
424 B
C#

using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
[CreateAssetMenu(fileName = "Item", menuName = "Harvestdale/Items/Item", order = 0)]
public class Item : ScriptableObject
{
public string uuid;
public string itemName;
public bool stackable = true;
public int maxStackSize = 100;
private void OnEnable()
{
if (!stackable)
{
maxStackSize = 1;
}
}
}