123456789101112131415161718192021222324252627282930313233343536373839 |
- 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{
- // }
- }
|