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