| | |
| | | |
| | | 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() |
| | |
| | | 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>(); |
| | | |
| | | } |
| | | } |