| | |
| | | [SerializeField] HeroConnectionCell connetionForm; //羁绊 |
| | | [SerializeField] Button resetBtn; |
| | | [SerializeField] Button deleteBtn; |
| | | [SerializeField] Transform deleteTip; |
| | | [SerializeField] Button seeLhBtn; //查看立绘 |
| | | [SerializeField] SkillBaseCell normalSkillCell; |
| | | [SerializeField] SkillBaseCell angerSkillCell; |
| | |
| | | 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的重叠问题 |
| | |
| | | { |
| | | 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() |