StellarXipher/Assets/Scripts/Item.cs
nlevin6 013f1dcd1d
All checks were successful
Build project / Build for (StandaloneLinux64, 6000.0.37f1) (push) Successful in 5m7s
Build project / Build for (StandaloneWindows64, 6000.0.37f1) (push) Successful in 5m15s
Build project / Publish to itch.io (StandaloneLinux64) (push) Successful in 10s
Build project / Publish to itch.io (StandaloneWindows64) (push) Successful in 10s
bug fix: a bunch of shit
2025-04-16 21:45:32 -04:00

12 lines
331 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 bool isKeyCard = false;
public GameObject GetPrefab() => itemPrefab as GameObject;
}