| | |
| | | [SerializeField] Text nameText; |
| | | [SerializeField] Image trainStateImg; |
| | | [SerializeField] RedpointBehaviour redpoint; |
| | | [SerializeField] Button fullBtn; |
| | | [SerializeField] Button bookLVBtn; |
| | | [SerializeField] GameObject unGetObj; |
| | | [SerializeField] GameObject activeObj; // 可激活带流光效果材质 |
| | | |
| | |
| | | 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)); |
| | |
| | | if (funcState == 3 || funcState == 4) |
| | | { |
| | | trainStateImg.SetActive(true); |
| | | trainStateImg.SetSprite("herofuncstate2"); |
| | | trainStateImg.SetSprite("herofuncstate4"); |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | 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>(); |