14 lines
420 B
C#
14 lines
420 B
C#
using UnityEngine;
|
|
|
|
// Example: InventoryItem.cs
|
|
|
|
[CreateAssetMenu(fileName = "InventoryItem", menuName = "Game Data/Inventory Item")]
|
|
public class GameItem : ScriptableObject
|
|
{
|
|
public string itemName;
|
|
public Sprite icon;
|
|
public int itemValue;
|
|
public string rarity; // todo: maybe like enum type?
|
|
public string qty; //todo: should this be moved to the inventoryitem object?
|
|
public int maxStack;
|
|
} |