Эх сурвалжийг харах

feat 答题结束奖励弹窗

Jae 2 жил өмнө
parent
commit
9720ce7d0b

+ 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
             {