23 lines
858 B
C#
23 lines
858 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; // 이제 이것만 있으면 됩니다!
|
|
|
|
[Header("Tool Settings")]
|
|
public bool isTool; // 도구 여부
|
|
public PlayerActionData toolAction; // 이 도구를 들었을 때 나갈 액션 (예: MiningActionData)
|
|
|
|
[Header("Visual Settings")]
|
|
public GameObject toolPrefab; // 캐릭터 손에 스폰될 3D 프리팹
|
|
public Vector3 equipPositionOffset; // 손 위치 미세 조정
|
|
public Vector3 equipRotationOffset; // 손 회전 미세 조정
|
|
} |