yyl
2025-09-18 871594462e82d6bc1341918d39e11ab036d59563
Main/System/HeroUI/HeroCollectionCardCell.cs
@@ -13,7 +13,7 @@
    [SerializeField] Text nameText;
    [SerializeField] Image trainStateImg;
    [SerializeField] RedpointBehaviour redpoint;
    [SerializeField] Button fullBtn;
    [SerializeField] Button bookLVBtn;
    [SerializeField] GameObject unGetObj;
    [SerializeField] GameObject activeObj; // 可激活带流光效果材质
@@ -29,7 +29,7 @@
        int funcState = HeroUIManager.Instance.GetHeroBookState(heroID, quality);
        activeObj.SetActive(funcState == 1);
        fullBtn.SetActive(funcState == 5);
        bookLVBtn.SetActive(funcState > 1);
        unGetObj.SetActive(funcState == 0);
        countryImg.SetSprite(HeroUIManager.Instance.GetCountryIconName(heroConfig.Country));
@@ -76,9 +76,14 @@
            {
                UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>();
            }
            else
            {
                HeroUIManager.Instance.selectForPreviewHeroID = heroID;
                UIManager.Instance.OpenWindow<HeroBestWin>();
            }
        });
        
        fullBtn.AddListener(() =>
        bookLVBtn.AddListener(() =>
        {
            HeroUIManager.Instance.selectCollectHeroID = heroID;
            UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>();