14 lines
446 B
C#
14 lines
446 B
C#
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "New Item", menuName = "Item")]
|
|
public class Item : ScriptableObject
|
|
{
|
|
[Header("Identification")]
|
|
public string itemName;
|
|
public string description;
|
|
public Sprite icon;
|
|
[Header("Crafting")]
|
|
public InventoryManager.ItemAmount[] requiredMaterials;
|
|
public int craftedAmount = 1; //amount of items received after being crafted
|
|
public int value; //items will be sold at a percentage of value?
|
|
}
|