hch
2026-01-26 aa84cb62bebb9c8a4e586bcc1ec28eb7a16a8860
Main/System/HeroUI/HeroPosHeadCell.cs
@@ -15,6 +15,7 @@
        var hero = HeroManager.Instance.GetHero(guid);
        var team = TeamManager.Instance.GetTeam(HeroUIManager.Instance.selectTeamType);
        selectRect.SetActive(team.GetHero(guid) != null);
        this.gameObject.name = $"HeroPosHeadCell_{hero.heroId}";
        heroHeadBaseCell.Init(hero.heroId, hero.SkinID, hero.heroStar, hero.awakeLevel, hero.heroLevel, () =>
        {
@@ -22,7 +23,7 @@
        });
        nameText.text = hero.breakLevel == 0 ? hero.heroConfig.Name : Language.Get("herocardbreaklv", hero.heroConfig.Name, hero.breakLevel);
        
        jobImg.SetSprite("herojob" + hero.heroConfig.Class);
        jobImg.SetSprite(HeroUIManager.Instance.GetJobIconName(hero.heroConfig.Class));
    }
    void Click(HeroInfo hero, int index)
@@ -41,7 +42,7 @@
            return;
        }
        team.AddHero(hero, out pos);
        team.AddHero(hero, out pos, true);
        if (pos != -1)
        {
            selectRect.SetActive(true);