| | |
| | | using UnityEngine; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | using System.Collections.Generic; |
| | | |
| | |
| | | var state = HeroUIManager.Instance.GetHeroBookState(heroID, quality); |
| | | if (state == 1 || state == 3 || state == 4) |
| | | { |
| | | UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>(); |
| | | UIManager.Instance.OpenWindowAsync<HeroCollectionLvUpWin>().Forget(); |
| | | } |
| | | else |
| | | { |
| | | HeroUIManager.Instance.selectForPreviewHeroID = heroID; |
| | | UIManager.Instance.OpenWindow<HeroBestWin>(); |
| | | UIManager.Instance.OpenWindowAsync<HeroBestWin>().Forget(); |
| | | } |
| | | }); |
| | | |
| | | // bookLVBtn.AddListener(() => |
| | | // { |
| | | // HeroUIManager.Instance.selectCollectHeroID = heroID; |
| | | // UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>(); |
| | | // UIManager.Instance.OpenWindowAsync<HeroCollectionLvUpWin>().Forget(); |
| | | // }); |
| | | } |
| | | } |