item.cs 687 B

1234567891011121314151617181920212223242526272829303132
  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 InventoryItemType type;
  17. // public InventoryItemAction action;
  18. // public enum InventoryItemType{
  19. // }
  20. // public enum InventoryItemAction{
  21. // }
  22. }