Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using UnityEngine;
- namespace Assets.Scripts {
- public abstract class InventoryItem : MonoBehaviour {
- public Texture2D InventoryImage;
- public string InventoryName;
- public bool CanBeAddedToInventory;
- public bool CanBeRemovedFromInventory;
- public CategoryType Type;
- public enum CategoryType {
- None = 0,
- Equipment = 1,
- Paper = 2,
- Item = 3
- }
- /// <summary>
- /// Called when added to players inventory
- /// </summary>
- public abstract void AddToInventory(List<InventoryItem> inventory);
- /// <summary>
- /// Called when removed from player inventory
- /// </summary>
- public abstract void RemoveFromInventory(List<InventoryItem> inventory);
- /// <summary>
- /// Called when used from player inventory
- /// </summary>
- public abstract void Use();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment