示例#1
0
 private void DestroyItem(MarketItemView item)
 {
     item.Clicked -= OnItemClicked;
     item.Hide();
     item.ApplyModel(null);
     Destroy(item.gameObject);
 }
示例#2
0
 protected virtual void UpdateItemViewPanel(MarketItemModel item)
 {
     _itemViewPanel.ApplyModel(item);
     if (item != null)
     {
         _itemViewPanel.Show();
     }
     else
     {
         _itemViewPanel.Hide();
     }
 }
        private void AddItemToPool(MarketItemView item)
        {
            item.Hide();

            _marketItemsPool.Enqueue(item);
        }