Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.95 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. [CreateAssetMenu(fileName = "Item", menuName = "Item", order = 3)]
  6. public class ItemScriptableObject : ScriptableObject
  7. {
  8.     #region Standard Item Fields
  9.     [Space(10)]
  10.     [Header("Standard Item Fields")]
  11.     public int weight = 0;
  12.  
  13.     [Space(10)]
  14.     public int maxStack = 1;
  15.  
  16.     [Space(10)]
  17.     public int price = 0;
  18.  
  19.     [Space(10)]
  20.     public int spawnFrequency = 0;
  21.  
  22.     [Space(10)]
  23.     public Sprite groundSprite;
  24.     public Sprite inventorySprite;
  25.  
  26.     [Space(10)]
  27.     public bool isCraftable = false;
  28.     #endregion
  29.  
  30.     #region Gear Item Fields
  31.     [Space(30)]
  32.     [Header("Gear Item Fields")]
  33.     public int maxInventorySpace = 0;
  34.  
  35.     [Space(10)]
  36.     public GearType gearType;
  37.     #endregion
  38.  
  39.  
  40.     #region Consumable Item Fields
  41.     [Space(30)]
  42.     [Header("Consumable Item Fields")]
  43.     public int amountToRestore;
  44.     #endregion
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement