Advertisement
Guest User

ItemStack.cs

a guest
Oct 14th, 2014
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement