Guest User

ItemStack.cs

a guest
Oct 14th, 2014
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class ItemStack {
  5.  
  6.     public Item ContainingItem; // The item that the itemstack is holding.
  7.     public int StackSize = 0;
  8.     public int MaxStackSize = 1;
  9.  
  10.     public ItemStack(Item i, int s /* <-- Stack size */) {
  11.         ContainingItem = i;
  12.         StackSize = s;
  13.         MaxStackSize = ContainingItem.MaxStackSize;
  14.     }
  15.  
  16. }
RAW Paste Data