hch
2025-09-06 9216ab7322fa164abaa6f9089058746b34bd690a
Main/System/HeroUI/HeroTrainWin.cs
@@ -616,23 +616,18 @@
    void StarUP()
    {
        if (hero.heroStar >= HeroUIManager.Instance.GetMaxStarCount(hero.heroId,  hero.Quality))
        if (hero.heroStar >= HeroUIManager.Instance.GetMaxStarCount(hero.heroId, hero.Quality))
        {
            return;
        }
        else if (hero.IsFullStar())
        {
            starUPBtn.interactable = true;
            starUPBtn.SetColorful(null, false);
            starUPBtnText.text = Language.Get("HeroGift3");
            SysNotifyMgr.Instance.ShowTip("HeroGift1");
            return;
        }
        else
        {
            starUPBtn.interactable = true;
            starUPBtn.SetColorful(null, true);
            HeroUIManager.Instance.selectHeroGuidForGiftFunc = hero.itemHero.guid;
            UIManager.Instance.OpenWindow<HeroGiftEatWin>();
        }
        HeroUIManager.Instance.selectHeroGuidForGiftFunc = hero.itemHero.guid;
        UIManager.Instance.OpenWindow<HeroGiftEatWin>();
    }
    void Wash()
@@ -642,15 +637,9 @@
            SysNotifyMgr.Instance.ShowTip("HeroGift2", HeroUIManager.Instance.canWashStarLevel);
            return;
        }
        // //根据锁状态判断材料是否足够
        // if (!ItemLogicUtility.CheckItemCount(PackType.Item, HeroUIManager.Instance.washItemID,
        // HeroUIManager.Instance.GetTalentLockUseWashCount(hero), 2))
        // {
        //     return;
        // }
        // UIManager.Instance.OpenWindow<HeroGiftWashWin>();
        HeroUIManager.Instance.selectWashHeroGUID = hero.itemHero.guid;
        UIManager.Instance.OpenWindow<HeroGiftWashWin>();
    }
}