private void GenerateContent() { for (int i = 1; i <= _CountContent; i++) { MarketItem marketItem = Instantiate(_marketItemPrefab, this.transform).GetComponent <MarketItem>(); marketItem.SetItemNumber(i); marketItem.SetPriceValue(i); _marketItems.Add(marketItem); } }
/// <summary> /// Add bought item value in queue /// </summary> /// <param name="itemValue"></param> public void AddBoughtItem(MarketItem marketItem) { _boughtItems.Enqueue(marketItem); }