yyl
2026-03-04 bc1cb6da854cb2e9144f10ed55330a537ecdca16
Main/System/HeroUI/HeroHeadBaseCell.cs
@@ -156,16 +156,7 @@
        // {
        //     skinID = heroConfig.SkinIDList[0];
        // }
        var sprite = UILoader.LoadSprite("HeroHead", HeroSkinConfig.Get(skinID).SquareIcon);
        if (sprite == null)
        {
            // 内网未配置时
            heroIcon.SetSprite("herohead_default");
        }
        else
        {
            heroIcon.overrideSprite = sprite;
        }
        UILoader.LoadSprite("HeroHead", HeroSkinConfig.Get(skinID).SquareIcon, heroIcon, "herohead_default").Forget();
        if (star == 0)
@@ -261,7 +252,7 @@
    }
    GameObject cellContainer;
    protected void LoadPrefab()
    protected async UniTask LoadPrefab()
    {
        if (cellContainer != null)
            return;
@@ -274,7 +265,16 @@
        }
        if (cellContainer == null)
        {
            cellContainer = UIUtility.CreateWidget("HeroHeadBaseCell", "Container_HeadCell");
            cellContainer = await UIUtility.CreateWidget("HeroHeadBaseCell", "Container_HeadCell");
            if (this == null)
            {
                if (cellContainer != null)
                {
                    DestroyImmediate(cellContainer);
                    return;
                }
            }
            if (cellContainer != null)
            {