Browse Source

钻石奖励

181404010226 2 weeks ago
parent
commit
1b64b76aca
2 changed files with 126 additions and 377 deletions
  1. 124 375
      assets/Scenes/GameLevel.scene
  2. 2 2
      assets/scripts/FourUI/ShopSystem/ShopController.ts

File diff suppressed because it is too large
+ 124 - 375
assets/Scenes/GameLevel.scene


+ 2 - 2
assets/scripts/FourUI/ShopSystem/ShopController.ts

@@ -468,7 +468,7 @@ export class ShopController extends Component {
         
         console.log(`[ShopController] 开始播放钻石奖励动画: ${amount}, 来源: ${isFromAd ? '广告' : '免费'}`);
         
-        // 播放奖励动画,动画完成后会自动添加钻石
+        this.saveDataManager.addDiamonds(amount, isFromAd ? 'daily_ad_reward' : 'daily_free_reward');
         this.playDiamondRewardAnimation(amount, () => {
             console.log(`[ShopController] 钻石奖励动画播放完成: ${amount}`);
         });
@@ -669,4 +669,4 @@ export class ShopController extends Component {
             console.error('[ShopController] 追踪查看商城内容事件时出错:', error);
         }
     }
-}
+}

Some files were not shown because too many files changed in this diff