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