浏览代码

feat 答题结束奖励弹窗

Jae 2 年之前
父节点
当前提交
9720ce7d0b
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      GameClient/Assets/Game/HotUpdate/ServerProxy/LeagueSproxy.cs

+ 6 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/LeagueSproxy.cs

@@ -260,6 +260,12 @@ namespace GFGGame
             if (message.Type == LastQuestionResult.Ending)
             {
                 LeagueDataManager.Instance.SetNumeric(LeagueNumericType.LeagueQuestionStatus, LeagueQuestionStatus.AnswerEnd);
+                //弹窗
+                var rewards = ItemUtil.CreateItemDataList(message.Rewards);
+                if (rewards.Count > 0)
+                {
+                    BonusController.TryShowBonusList(rewards);
+                }
             }
             else
             {