示例#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);
     }
 }
示例#2
0
文件: Cart.cs 项目: Reclocer/2048
 /// <summary>
 /// Add bought item value in queue
 /// </summary>
 /// <param name="itemValue"></param>
 public void AddBoughtItem(MarketItem marketItem)
 {
     _boughtItems.Enqueue(marketItem);
 }