| | |
| | | [SerializeField] HeroLVBreakCell heroLVBreakCell; //对应培养的 allAttrScroll 和 attrBtn |
| | | |
| | | |
| | | //入口伪红点用图片代替 |
| | | [SerializeField] Image trainMainRedImg; |
| | | [SerializeField] Image breakMainRedImg; |
| | | bool isTrainMainRed; |
| | | bool isBreakMainRed; |
| | | #endregion |
| | | |
| | | |
| | |
| | | RefreshAwake(); |
| | | RefreshFreeze(); |
| | | RefreshRedImg(); |
| | | HeroUIManager.Instance.UpdateTheHeroCardRedpoint(isTrainMainRed, isBreakMainRed, |
| | | HeroUIManager.Instance.HeroAllSkinStateForRedpoint(hero.heroId) > 0); |
| | | DisplayTrainOrBreak(hero); |
| | | ShowDeleteTip(); |
| | | |
| | |
| | | redpointAwake.SetActive(false); |
| | | redpointGift.SetActive(false); |
| | | redpointLVUP.SetActive(false); |
| | | trainMainRedImg.SetActive(false); |
| | | breakMainRedImg.SetActive(false); |
| | | isTrainMainRed = false; |
| | | isBreakMainRed = false; |
| | | redpointBreakLVUP.SetActive(false); |
| | | |
| | | |
| | |
| | | if (heroCnt > 1 && hero.heroStar < hero.GetCurMaxStar()) |
| | | { |
| | | redpointGift.SetActive(true); |
| | | trainMainRedImg.SetActive(true); |
| | | isTrainMainRed = true; |
| | | } |
| | | |
| | | |
| | |
| | | if (itemPack.GetCountById(lvupConfig.UPCostItem[0]) >= lvupConfig.UPCostItem[1]) |
| | | { |
| | | redpointLVUP.SetActive(true); |
| | | trainMainRedImg.SetActive(true); |
| | | isTrainMainRed = true; |
| | | } |
| | | } |
| | | |
| | |
| | | if (itemPack.GetCountById(config.UPCostItem[0]) >= config.UPCostItem[1]) |
| | | { |
| | | redpointAwake.SetActive(true); |
| | | trainMainRedImg.SetActive(true); |
| | | isTrainMainRed = true; |
| | | } |
| | | } |
| | | } |
| | |
| | | if (HeroUIManager.Instance.IsCanBreak(hero)) |
| | | { |
| | | redpointBreakLVUP.SetActive(true); |
| | | breakMainRedImg.SetActive(true); |
| | | isBreakMainRed = true; |
| | | } |
| | | |
| | | } |