public Item(ItemObject template, int amount, float durability) { this.template = template; this.amount = template.IsStackable ? amount : 1; this.durability = durability; }
public void Clear() { template = null; amount = 0; durability = -1; }
// Default constructor required for new items instantiated from inspector public Item() { template = null; amount = 0; durability = -1; }