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(); }
public ItemSelectedArgs(StoreManager.ItemTypes itemType, int id) { this.itemType = itemType; this.id = id; }