Exemple #1
0
 public void Initialize(StoreManager.ItemTypes itemType, int id, string itemName, int price, int cp, CubeLibrary library)
 {
     this.library = library;
     name = itemName;
     this.itemType = itemType;
     this.id = id;
     this.itemName.text = itemName;
     buyPrice.text = StoreManager.FormatMoney(price, false);
     sellPrice.text = StoreManager.FormatMoney((int)(price * StoreManager.SellPercent), true);
     this.cp.text = cp.ToString();
 }
Exemple #2
0
 public ItemSelectedArgs(StoreManager.ItemTypes itemType, int id)
 {
     this.itemType = itemType;
     this.id = id;
 }