| | |
| | | [SerializeField] Text nameText; |
| | | [SerializeField] Image trainStateImg; |
| | | [SerializeField] RedpointBehaviour redpoint; |
| | | [SerializeField] Button bookLVBtn; |
| | | // [SerializeField] Button bookLVBtn; |
| | | [SerializeField] GameObject unGetObj; |
| | | [SerializeField] GameObject activeObj; // 可激活带流光效果材质 |
| | | |
| | |
| | | { |
| | | var heroID = HeroUIManager.Instance.heroCollectDict[quality][index]; |
| | | var heroConfig = HeroConfig.Get(heroID); |
| | | |
| | | this.gameObject.name = $"herocard_{heroID}"; |
| | | |
| | | HB122_tagSCHeroInfo.tagSCHero colData; |
| | | HeroUIManager.Instance.TryGetHeroBookInfo(heroID, out colData); |
| | | heroCardBG.SetSprite("herocardbg" + heroConfig.Quality); |
| | |
| | | int funcState = HeroUIManager.Instance.GetHeroBookState(heroID, quality); |
| | | |
| | | activeObj.SetActive(funcState == 1); |
| | | bookLVBtn.SetActive(funcState > 1); |
| | | // bookLVBtn.SetActive(funcState > 1); |
| | | unGetObj.SetActive(funcState == 0); |
| | | |
| | | countryImg.SetSprite(HeroUIManager.Instance.GetCountryIconName(heroConfig.Country)); |
| | |
| | | } |
| | | }); |
| | | |
| | | bookLVBtn.AddListener(() => |
| | | { |
| | | HeroUIManager.Instance.selectCollectHeroID = heroID; |
| | | UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>(); |
| | | }); |
| | | // bookLVBtn.AddListener(() => |
| | | // { |
| | | // HeroUIManager.Instance.selectCollectHeroID = heroID; |
| | | // UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>(); |
| | | // }); |
| | | } |
| | | } |
| | | |