아이템 드랍 및 인벤토리 기능 구현
This commit is contained in:
12
Assets/Scripts/GameBase/ItemData.cs
Normal file
12
Assets/Scripts/GameBase/ItemData.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "New Item", menuName = "Inventory/Item")]
|
||||
public class ItemData : ScriptableObject
|
||||
{
|
||||
public int itemID;
|
||||
public string itemName;
|
||||
public Sprite icon;
|
||||
|
||||
[Header("Visual Source")]
|
||||
public GameObject originalBlockPrefab; // 이제 이것만 있으면 됩니다!
|
||||
}
|
||||
Reference in New Issue
Block a user