Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- [System.Serializable]
- public class Item
- {
- public string itemName;
- public string itemDescription;
- public int itemID;
- public Texture2D itemIcon;
- public ItemType itemTypes;
- public Rarity itemRarity;
- public int itemValue;
- public string itemFlavorText;
- public enum Rarity
- {
- Common,
- Uncommon,
- Rare,
- Exclusive
- }
- public enum ItemType
- {
- Weapon,
- Consumable,
- Armor,
- Quest,
- CraftingMaterial,
- Jewelry,
- Junk,
- SkillBook,paste
- StatBook
- }
- public Item(int id, string name, string desc, ItemType type, Rarity rarity, int value, string flavor)
- {
- itemID = id;
- itemName = name;
- itemDescription = desc;
- itemIcon = Resources.Load<Texture2D>("Item Icons/" + ItemName);
- itemTypes = type;
- itemRarity = rarity;
- itemValue = value;
- itemFlavorText = flavor;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement