浏览代码

红点添加时间判断

zhangyuqian 1 年之前
父节点
当前提交
a5d610bb0b
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      GameClient/Assets/Game/HotUpdate/Data/TimeTracingDataManager.cs

+ 10 - 2
GameClient/Assets/Game/HotUpdate/Data/TimeTracingDataManager.cs

@@ -51,7 +51,11 @@ namespace GFGGame
         //获取关卡奖励状态
         public bool GetLevelRewardStatus(int levelID = 0)
         {
-            if(levelID == 0)
+            if(ActivityDataManager.Instance.GetCurOpenActiveByType(21) == 0)
+            {
+                return false;
+            }
+            if (levelID == 0)
             {
                 return GetAllLevelRewardStatus(true);
             }
@@ -165,7 +169,11 @@ namespace GFGGame
 
         public bool GetAllChapterReward()
         {
-            foreach(int i in chapterIdList)
+            if (ActivityDataManager.Instance.GetCurOpenActiveByType(21) == 0)
+            {
+                return false;
+            }
+            foreach (int i in chapterIdList)
             {
                 if(GetChapterIDRewardStatus(i))
                 {