Inventory implemented
This commit is contained in:
25
Assets/Game/Scripts/InventoryItem.cs
Normal file
25
Assets/Game/Scripts/InventoryItem.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user