mmorpg2d/Assets/Script/Inventory/item.cs
2025-03-15 13:34:03 +05:30

40 lines
899 B
C#

using System.Collections;
using System.Collections.Generic;
using Assets.HeroEditor4D.InventorySystem.Scripts.Enums;
using UnityEngine;
using UnityEngine.UI;
[CreateAssetMenu(fileName = "InventoryItem", menuName = "ScriptableObjects/InventoryItem", order = 2)]
public class item : ScriptableObject
{
public string type;
public bool isUsable;
public Sprite image;
public GameObject prefab;
public int count;
public int spawnProbability = 50;
public int healthIncrease = 10;
public int bowId = -1;
public int wandId = -1;
public int swordId = -1;
public int armorId = -1;
public int helmetId = -1;
// public InventoryItemType type;
// public InventoryItemAction action;
// public enum InventoryItemType{
// }
// public enum InventoryItemAction{
// }
}