item.cs 899 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 bool isUsable;
  11. public Sprite image;
  12. public GameObject prefab;
  13. public int count;
  14. public int spawnProbability = 50;
  15. public int healthIncrease = 10;
  16. public int bowId = -1;
  17. public int wandId = -1;
  18. public int swordId = -1;
  19. public int armorId = -1;
  20. public int helmetId = -1;
  21. // public InventoryItemType type;
  22. // public InventoryItemAction action;
  23. // public enum InventoryItemType{
  24. // }
  25. // public enum InventoryItemAction{
  26. // }
  27. }