| | |
| | | using System.Collections.Generic; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | |
| | |
| | | awakeBtn.AddListener(AwakeHero); |
| | | watchBtn.AddListener(() => |
| | | { |
| | | UIManager.Instance.OpenWindow<HeroAwakePrivewWin>(); |
| | | UIManager.Instance.OpenWindowAsync<HeroAwakePrivewWin>().Forget(); |
| | | }); |
| | | } |
| | | |
| | |
| | | } |
| | | if (hero.talentAwakeRandomIDList.Count > 0) |
| | | { |
| | | UIManager.Instance.OpenWindow<HeroAwakeSelectGiftWin>(); |
| | | UIManager.Instance.OpenWindowAsync<HeroAwakeSelectGiftWin>().Forget(); |
| | | } |
| | | } |
| | | |
| | |
| | | if (hero.talentAwakeRandomIDList.Count > 0) |
| | | { |
| | | //防范未选择天赋 |
| | | UIManager.Instance.OpenWindow<HeroAwakeSelectGiftWin>(); |
| | | UIManager.Instance.OpenWindowAsync<HeroAwakeSelectGiftWin>().Forget(); |
| | | return; |
| | | } |
| | | |