hch
10 小时以前 bd6f9a734277e57efe5abc8c32a85d5de27cdc03
Main/System/HeroUI/HeroTrainWin.cs
@@ -105,9 +105,8 @@
    [SerializeField] HeroLVBreakCell heroLVBreakCell;   //对应培养的 allAttrScroll  和 attrBtn
    //入口伪红点用图片代替
    [SerializeField] Image trainMainRedImg;
    [SerializeField] Image breakMainRedImg;
    bool isTrainMainRed;
    bool isBreakMainRed;
    #endregion
@@ -297,6 +296,8 @@
        RefreshAwake();
        RefreshFreeze();
        RefreshRedImg();
        HeroUIManager.Instance.UpdateTheHeroCardRedpoint(isTrainMainRed, isBreakMainRed,
            HeroUIManager.Instance.HeroAllSkinStateForRedpoint(hero.heroId) > 0);
        DisplayTrainOrBreak(hero);
        ShowDeleteTip();
@@ -886,8 +887,8 @@
        redpointAwake.SetActive(false);
        redpointGift.SetActive(false);
        redpointLVUP.SetActive(false);
        trainMainRedImg.SetActive(false);
        breakMainRedImg.SetActive(false);
        isTrainMainRed = false;
        isBreakMainRed = false;
        redpointBreakLVUP.SetActive(false);
@@ -898,7 +899,7 @@
        if (heroCnt > 1 && hero.heroStar < hero.GetCurMaxStar())
        {
            redpointGift.SetActive(true);
            trainMainRedImg.SetActive(true);
            isTrainMainRed = true;
        }
@@ -909,7 +910,7 @@
            if (itemPack.GetCountById(lvupConfig.UPCostItem[0]) >= lvupConfig.UPCostItem[1])
            {
                redpointLVUP.SetActive(true);
                trainMainRedImg.SetActive(true);
                isTrainMainRed = true;
            }
        }
@@ -931,7 +932,7 @@
                if (itemPack.GetCountById(config.UPCostItem[0]) >= config.UPCostItem[1])
                {
                    redpointAwake.SetActive(true);
                    trainMainRedImg.SetActive(true);
                    isTrainMainRed = true;
                }
            }
        }
@@ -939,7 +940,7 @@
        if (HeroUIManager.Instance.IsCanBreak(hero))
        {
            redpointBreakLVUP.SetActive(true);
            breakMainRedImg.SetActive(true);
            isBreakMainRed = true;
        }
    }