hch
3 分钟以前 8d22c913b691d571052eee46393cbb5ee2631221
Main/System/HeroUI/HeroCardCell.cs
@@ -12,6 +12,7 @@
    [SerializeField] UIHeroController heroModel;
    [SerializeField] Image onStateImg;
    [SerializeField] RedpointBehaviour redpoint;
    [SerializeField] Image newImage;    //新标识和红点互斥
    [SerializeField] Image trainStateImg;
    [SerializeField] Text nameText;
    [SerializeField] Image awakeImg;
@@ -38,12 +39,23 @@
        heroModel.Create(heroConfig.SkinIDList[hero.SkinIndex], heroConfig.UIScale);
        onStateImg.SetActive(hero.IsInTeamByTeamType(TeamType.Story));
        redpoint.redpointId = MainRedDot.HeroCardRedpoint * 1000 + hero.itemHero.gridIndex;
        var funcState = hero.funcState;
        int teamPos = TeamManager.Instance.GetTeam(TeamType.Story).GetPosition(hero.itemHero.guid);
        if (teamPos >= 0)
        {
            redpoint.redpointId = MainRedDot.HeroCardRedpoint * 10 + teamPos;
            newImage.SetActive(false);
        }
        else
        {
            redpoint.redpointId = 0;
            newImage.SetActive(HeroUIManager.Instance.newHeroIDList.Contains(hero.heroId));
        }
        var funcState = HeroUIManager.Instance.GetFuncState(hero);
        if (funcState > 0)
        {
            trainStateImg.SetActive(true);
            trainStateImg.SetSprite("herofuncstate" + hero.funcState);
            trainStateImg.SetSprite("herofuncstate" + funcState);
        }
        else
        {