Files
ShopGame/Assets/Scripts/Item.cs

12 lines
375 B
C#
Raw Normal View History

2025-12-17 17:34:04 +00:00
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.
}