Files
ShopGame/Assets/Scripts/Item.cs
2025-12-17 17:34:04 +00:00

12 lines
375 B
C#

using UnityEngine;
[System.Serializable]
public class Item : MonoBehaviour
{
public static Item instance { get; private set; }
public string itemName; // Name of the item
public int itemPrice; // Price of the item
public Sprite itemSprite; // Optional: Sprite for the item
// Optional: Add more properties as needed, such as description, rarity, etc.
}