Files
example-top-down-unity/Assets/Scripts/Inventory/Item.cs
julius 9201677c1b -Added Items
-Added item stacking
-adding and removing items
2022-02-10 19:56:25 +01:00

13 lines
296 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "Item", menuName = "Items/Item", order = 1)]
public class Item : ScriptableObject
{
public new string name;
public int id;
public bool isStackable;
public Sprite sprite;
}