25 lines
564 B
C#
25 lines
564 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "InventoryItem", menuName = "GameData/InventoryItem", order = 1)]
|
|
[System.Serializable]
|
|
public class InventoryItem : ScriptableObject
|
|
{
|
|
public string itemName;
|
|
public int price;
|
|
public int gems;
|
|
public int stat;
|
|
public Sprite image;
|
|
}
|
|
|
|
|
|
[System.Serializable]
|
|
public class InventoryEntry{
|
|
public string Item;
|
|
public int Count;
|
|
public InventoryEntry(string item, int count){
|
|
Item = item;
|
|
Count = count;
|
|
}
|
|
} |