Item.cs 567 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. [CreateAssetMenu(fileName = "New Item", menuName = "Data/New Item", order = 1)]
  6. public class Item : ScriptableObject {
  7. public string ID = Guid.NewGuid().ToString().ToUpper();
  8. public string FriendlyName;
  9. public string Description;
  10. public Categories Category;
  11. public bool Stackable;
  12. public int BuyPrice;
  13. [Range(0, 1)]
  14. public float SellPercentage;
  15. public Sprite Icon;
  16. public enum Categories {
  17. Wall,
  18. Decoration
  19. }
  20. }