Files
harvestdale-unity/Assets/Scripts/Item.cs
Janis Meister 5773aa0af7 inventory ui
2023-02-21 15:11:53 +01:00

23 lines
448 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 Sprite sprite;
public bool stackable = true;
public int maxStackSize = 100;
private void OnEnable()
{
if (!stackable)
{
maxStackSize = 1;
}
}
}