StellarXipher/Assets/Scripts/Item.cs
nlevin6 930173c383
Some checks failed
Build project / Build for (StandaloneWindows64, 6000.0.37f1) (push) Has been cancelled
Build project / Publish to itch.io (StandaloneLinux64) (push) Has been cancelled
Build project / Publish to itch.io (StandaloneWindows64) (push) Has been cancelled
Build project / Build for (StandaloneLinux64, 6000.0.37f1) (push) Has been cancelled
added inventory
2025-03-29 21:27:24 -04:00

11 lines
296 B
C#

using UnityEngine;
[CreateAssetMenu(fileName = "NewItem", menuName = "Inventory/Item")]
public class Item : ScriptableObject
{
public string itemName;
public Sprite itemIcon;
[SerializeField] public Object itemPrefab;
public GameObject GetPrefab() => itemPrefab as GameObject;
}