yyl
2026-03-04 bc1cb6da854cb2e9144f10ed55330a537ecdca16
Main/System/HeroUI/GiftBaseCell.cs
@@ -1,6 +1,7 @@
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using Cysharp.Threading.Tasks;
public class GiftBaseCell : MonoBehaviour
{
@@ -175,18 +176,18 @@
            }
            UIManager.Instance.OpenWindow<SmallTipWin>();
            UIManager.Instance.OpenWindowAsync<SmallTipWin>().Forget();
        }
        else if (giftID == 0)
        {
            SmallTipWin.showText = Language.Get("HeroGift1");
            UIManager.Instance.OpenWindow<SmallTipWin>();
            UIManager.Instance.OpenWindowAsync<SmallTipWin>().Forget();
        }
        else if (giftID == -1)
        { 
            SmallTipWin.showText = Language.Get("HeroGift2", HeroAwakeConfig.GetAwakeLVByUnLockGiftIndex(heroID, index));
            UIManager.Instance.OpenWindow<SmallTipWin>();
            UIManager.Instance.OpenWindowAsync<SmallTipWin>().Forget();
        }
    }
@@ -242,7 +243,7 @@
    }
    GameObject cellContainer;
    protected void LoadPrefab()
    protected async UniTask LoadPrefab()
    {
        if (cellContainer != null)
            return;
@@ -255,7 +256,16 @@
        }
        if (cellContainer == null)
        {
            cellContainer = UIUtility.CreateWidget("GiftBaseCell", "Container_GiftCell");
            cellContainer = await UIUtility.CreateWidget("GiftBaseCell", "Container_GiftCell");
            if (this == null)
            {
                if (null != cellContainer)
                {
                    GameObject.DestroyImmediate(cellContainer);
                }
                return;
            }
            if (cellContainer != null)
            {