18 lines
328 B
C#
18 lines
328 B
C#
|
|
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;
|
||
|
|
}
|