item.cs 660 B

12345678910111213141516171819202122232425262728293031
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using Assets.HeroEditor4D.InventorySystem.Scripts.Enums;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. [CreateAssetMenu(fileName = "InventoryItem", menuName = "ScriptableObjects/InventoryItem", order = 2)]
  7. public class item : ScriptableObject
  8. {
  9. public string type;
  10. public Sprite image;
  11. public GameObject prefab;
  12. public int count;
  13. public int spawnProbability = 50;
  14. public int healthIncrease = 10;
  15. // public InventoryItemType type;
  16. // public InventoryItemAction action;
  17. // public enum InventoryItemType{
  18. // }
  19. // public enum InventoryItemAction{
  20. // }
  21. }