yyl
79 分钟以前 8d42bc7ab52a3980df2778d2ee7757e60914e6e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
            }
        }
 
    }
}