using System.Collections.Generic;  
 | 
using UnityEngine;  
 | 
using UnityEngine.UI;  
 | 
  
 | 
public class CommonGetItemCell : CellView  
 | 
{  
 | 
    [SerializeField] List<CommonGetItem> commonGetItems = new List<CommonGetItem>();  
 | 
    public void Display(int index, List<Item> showItems)  
 | 
    {  
 | 
        for (int i = 0; i < commonGetItems.Count; i++)  
 | 
        {  
 | 
            if (index + i < showItems.Count)  
 | 
            {  
 | 
                int itemId = showItems[index + i].id;  
 | 
                commonGetItems[i].Display(itemId);  
 | 
                commonGetItems[i].SetActive(true);  
 | 
            }  
 | 
            else  
 | 
            {  
 | 
                commonGetItems[i].SetActive(false);  
 | 
            }  
 | 
        }  
 | 
    }  
 | 
}  
 |