Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Add bought item value in queue
 /// </summary>
 /// <param name="itemValue"></param>
 public void AddBoughtItem(MarketItem marketItem)
 {
     _boughtItems.Enqueue(marketItem);
 }