12 lines
301 B
C#
12 lines
301 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
[CreateAssetMenu(menuName = "Lab05/Item Data", fileName = "ItemData")]
|
||
|
|
public class ItemData : ScriptableObject
|
||
|
|
{
|
||
|
|
public string itemId;
|
||
|
|
public string itemName;
|
||
|
|
[TextArea(2, 4)] public string description;
|
||
|
|
public Sprite icon;
|
||
|
|
[Min(1)] public int maxStack = 99;
|
||
|
|
}
|