| | |
| | | { |
| | | UIManager.Instance.OpenWindow<HeroGiftEatSuccessWin>(); |
| | | } |
| | | else if (waitResponse.type == HeroFuncType.Awake) |
| | | { |
| | | var config = HeroAwakeConfig.GetHeroAwakeConfig(hero.heroId, hero.awakeLevel); |
| | | if (hero.talentAwakeRandomIDList.Count > 0) |
| | | { |
| | | UIManager.Instance.OpenWindow<HeroAwakeSelectGiftWin>(); |
| | | } |
| | | else if (config.SkillID != 0 || config.UnlockTalentSlot != 0) |
| | | { |
| | | UIManager.Instance.OpenWindow<HeroAwakeSuccessWin>(); |
| | | } |
| | | } |
| | | waitResponse = default; |
| | | |
| | | } |
| | |
| | | |
| | | } |
| | | |
| | | #region 等待服务端响应 |
| | | public struct WaitHeroFuncResponse |
| | | { |
| | | public HeroFuncType type; |
| | |
| | | None = 0, //无功能 |
| | | Break = 1, //突破 |
| | | Gift = 2, //天赋吞噬 |
| | | |
| | | Awake = 3, //觉醒 |
| | | } |
| | | #endregion |