소스 검색

每日签到

zhaoyang 2 년 전
부모
커밋
4b2409874b
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/DailySignView.cs

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/DailySignView.cs

@@ -180,6 +180,12 @@ namespace GFGGame
             int day = (int)obj.data;
             bool result = false;
             if (day > _day) return;
+            bool isGot = MathHelper.isBitSet(GameGlobal.myNumericComponent.GetAsInt(NumericType.SignDay), day);
+            if (isGot)
+            {
+                PromptController.Instance.ShowFloatTextPrompt("已领取");
+                return;
+            }
             if (day < _day)
             {
                 int[] cost = GlobalCfgArray.globalCfg.dailySignConsumeArr[0];