TigerProject/Assets/Scripts/Shop/ItemData.cs

18 lines
328 B
C#
Raw Normal View History

2026-01-28 10:43:27 +00:00
using UnityEngine;
public enum ItemType
{
Heal,
SpeedUp,
AttackSpeed
}
[CreateAssetMenu(fileName = "New Item", menuName = "Shop/Item")]
public class ItemData : ScriptableObject
{
public string itemName;
public int price;
public Sprite icon;
public ItemType itemType;
public float effectValue;
}