hch
2 天以前 ed63aa36ced400b4eef79862e85498213ae40c4a
Main/System/HeroUI/HeroTrainWin.cs
@@ -30,6 +30,7 @@
    [SerializeField] HeroConnectionCell connetionForm;  //羁绊
    [SerializeField] Button resetBtn;
    [SerializeField] Button deleteBtn;
    [SerializeField] Transform deleteTip;
    [SerializeField] Button seeLhBtn;   //查看立绘
    [SerializeField] SkillBaseCell normalSkillCell;
    [SerializeField] SkillBaseCell angerSkillCell;
@@ -295,11 +296,23 @@
        RefreshFreeze();
        RefreshRedImg();
        DisplayTrainOrBreak(hero);
        ShowDeleteTip();
        HeroUIManager.Instance.RemoveNewHero(hero.heroId);
        ForceRefreshLayout();
    }
    void ShowDeleteTip()
    {
        deleteTip.SetActive(false);
        if (hero != null && hero.Quality == 1 && HeroUIManager.Instance.IsTheSameHeroFullStar(hero.heroId))
        {
            deleteTip.SetActive(true);
        }
    }
    /// <summary>
    /// 强制刷新Layout,解决嵌套Layout和ContentSizeFitter的重叠问题
@@ -409,23 +422,8 @@
    {
        if (hero.isAttrActive)
            return false;
        bool isFullStar = false;
        var _list = HeroManager.Instance.GetHeroListByID(hero.heroId);
        foreach (var heroInfo in _list)
        {
            if (heroInfo.heroStar < heroInfo.GetCurMaxStar())
            {
                continue;
            }
            //相同武将中已经有满星的
            isFullStar = true;
            break;
        }
        return isFullStar;
        return HeroUIManager.Instance.IsTheSameHeroFullStar(hero.heroId);
    }
    void RefreshStars()