19 lines
453 B
C#
19 lines
453 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
[CreateAssetMenu(fileName = "NewItem", menuName = "Crafting/ItemData")]
|
||
|
|
public class ItemData : ScriptableObject
|
||
|
|
{
|
||
|
|
[Header("Identity")]
|
||
|
|
public string itemId;
|
||
|
|
public string itemName;
|
||
|
|
[TextArea(2, 4)] public string description;
|
||
|
|
|
||
|
|
[Header("Presentation")]
|
||
|
|
public Sprite icon;
|
||
|
|
public Color itemColor = Color.white;
|
||
|
|
|
||
|
|
[Header("Stacking")]
|
||
|
|
[Min(1)] public int maxStack = 64;
|
||
|
|
public bool isResource;
|
||
|
|
}
|