mirror of
https://github.com/DerTyp7/example-top-down-unity.git
synced 2025-10-30 12:57:08 +01:00
-Added Items
-Added item stacking -adding and removing items
This commit is contained in:
12
Assets/Scripts/Inventory/Item.cs
Normal file
12
Assets/Scripts/Inventory/Item.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user