hch
2025-08-31 108997fd934885b21c7cc7af3fcde171d5c3cca9
Main/System/HeroUI/HeroHeadBaseCell.cs
@@ -137,7 +137,7 @@
    }
    // 武将小头像,(职业和名称不再此管理,各个界面排版不同)
    public void Init(int heroID, int skinID = 0, int star = 0, int awakelv = 0, int lv = 0, UnityAction onclick = null)
    public void Init(int heroID, int skinID, int star = 0, int awakelv = 0, int lv = 0, UnityAction onclick = null)
    {
        clickBtn.AddListener(onclick);
        var heroConfig = HeroConfig.Get(heroID);
@@ -161,17 +161,7 @@
        {
            heroIcon.overrideSprite = sprite;
        }
        for (int i = 0; i < 5; i++)
        {
            if (i < star)
            {
                starsImg[i].SetSprite("star");
            }
            else
            {
                starsImg[i].SetSprite("star0");
            }
        }
        if (star == 0)
        {