hch
2025-08-04 aa1a163a2e4db22fc51cb825e9a05d1d3a757370
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using UnityEngine;
 
/// <summary>
/// 背包格子
/// </summary>
public class PackGirdCell : MonoBehaviour
{
    [SerializeField] ItemCell itemCell;
    [SerializeField] RedpointBehaviour redPoint;    // 此处红点可以用图片表示
    public void Display(int index)
    {
        var guid = PackManager.Instance.GetSinglePack(PackType.Item).itemGuidList[index];
        if (string.IsNullOrEmpty(guid))
            return;
        itemCell.Init(PackManager.Instance.GetItemByGuid(guid));
    }
}