reworked inv

This commit is contained in:
j.mei7
2022-02-21 21:16:29 +01:00
parent faf55bfb89
commit 65d6af578d
19 changed files with 364 additions and 253 deletions

View File

@@ -3,10 +3,20 @@ using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "Item", menuName = "Items/Item", order = 1)]
public class Item : ScriptableObject
public abstract class Item : ScriptableObject
{
public new string name;
public int id;
public bool isStackable;
public Sprite sprite;
}
public bool isSelected;
public abstract void OnSelect();
public void Select()
{
isSelected = !isSelected;
OnSelect();
}
}