| using UnityEngine;  | 
|   | 
| /// <summary>  | 
| /// 背包格子行  | 
| /// </summary>  | 
| public class RolePackLineCell : CellView  | 
| {  | 
|     [SerializeField] PackGirdCell[] itemCell;  | 
|     public void Display(int index)  | 
|     {  | 
|         var itemPack = PackManager.Instance.GetSinglePack(PackType.Item);  | 
|         for (int i = 0; i < itemCell.Length; i++)  | 
|         {  | 
|             if (index + i < itemPack.itemGuidList.Count)  | 
|             {  | 
|                 itemCell[i].SetActive(true);  | 
|                 itemCell[i].Display(index + i);  | 
|             }  | 
|             else  | 
|             {  | 
|                 itemCell[i].SetActive(false);  | 
|             }  | 
|         }  | 
|   | 
|     }  | 
| }  |