14 lines
431 B
C#
14 lines
431 B
C#
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "New Item", menuName = "Inventory/Item")]
|
|
public class ItemData : ScriptableObject
|
|
{
|
|
public int itemID;
|
|
public string itemName;
|
|
public Sprite icon;
|
|
public float weight; // 아이템 개당 무게
|
|
public int maxStack = 99; // 최대 중첩 개수
|
|
|
|
[Header("Visual Source")]
|
|
public GameObject originalBlockPrefab; // 이제 이것만 있으면 됩니다!
|
|
} |