浏览代码

【bug】修改保持二倍速的逻辑

mojunshou 7 月之前
父节点
当前提交
f3c36c1311

+ 1 - 1
assets/bundle/gui/eliminate/prefab/gamePass.prefab

@@ -2252,7 +2252,7 @@
         "__id__": 113
       }
     ],
-    "_active": true,
+    "_active": false,
     "_components": [
       {
         "__id__": 129

+ 4 - 4
assets/bundle/gui/eliminate/prefab/redPacketWithdrawal.prefab

@@ -140,7 +140,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 720,
-      "height": 1600.0000000000002
+      "height": 1600
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -5001,7 +5001,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 720,
-      "height": 1600.0000000000002
+      "height": 1600
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -5076,7 +5076,7 @@
         "__id__": 219
       }
     ],
-    "_active": true,
+    "_active": false,
     "_components": [
       {
         "__id__": 225
@@ -5450,7 +5450,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 720,
-      "height": 1600.0000000000002
+      "height": 1600
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 0 - 23
assets/script/game/view/GuildTipsView.ts

@@ -1,23 +0,0 @@
-/*
- * @Author: mojunshou 1637302775@qq.com
- * @Date: 2025-04-07 17:49:55
- * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-09 18:14:07
- * @Description: 
- */
-import { _decorator, Component, Node } from 'cc';
-import { GameComponent } from 'db://oops-framework/module/common/GameComponent';
-const { ccclass, property } = _decorator;
-//引导提示
-@ccclass('GuildTipsView')
-export class GuildTipsView extends GameComponent {
-    start() {
-
-    }
-
-    update(deltaTime: number) {
-
-    }
-}
-
-

+ 0 - 9
assets/script/game/view/GuildTipsView.ts.meta

@@ -1,9 +0,0 @@
-{
-  "ver": "4.0.24",
-  "importer": "typescript",
-  "imported": true,
-  "uuid": "fe66841e-5071-4221-ac81-d9fc7f48732b",
-  "files": [],
-  "subMetas": {},
-  "userData": {}
-}

+ 6 - 2
assets/script/game/view/keepDoubleSpeedView.ts

@@ -2,7 +2,7 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-04-15 20:16:16
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-23 16:32:13
+ * @LastEditTime: 2025-04-28 20:44:31
  * @Description: 继续二倍速
  */
 import { _decorator, Component, Node } from 'cc';
@@ -14,6 +14,7 @@ import { ADHandler } from '../common/manager/ADHandler';
 import { smc } from '../common/SingletonModuleComp';
 import { Label } from 'cc';
 import { DCHandler } from '../common/manager/DCHandler';
+import { GameEvent } from '../common/config/GameEvent';
 const { ccclass, property } = _decorator;
 
 @ccclass('keepDoubleSpeedView')
@@ -54,6 +55,7 @@ export class keepDoubleSpeedView extends GameComponent {
         this.openAd();
         oops.gui.remove(UIID.KeepSpeed);
         DCHandler.inst.reportData(3000303);
+        oops.message.dispatchEvent(GameEvent.updateGameState, "playing");
     }
 
     //打开广告
@@ -67,6 +69,7 @@ export class keepDoubleSpeedView extends GameComponent {
         this.isAuto = false;
         oops.gui.remove(UIID.KeepSpeed);
         ADHandler.inst.showAd("107");
+        oops.message.dispatchEvent(GameEvent.updateGameState, "paused");
     }
 
     private btn_close() {
@@ -75,9 +78,10 @@ export class keepDoubleSpeedView extends GameComponent {
         //播放插屏广告
         ADHandler.inst.showAd("107");
         DCHandler.inst.reportData(3000305);
+        oops.message.dispatchEvent(GameEvent.updateGameState, "paused");
     }
 
-    protected onDisable(): void {
+    protected onDestroy(): void {
         this.isAuto = false;
         if (this.autoFunction) {
             this.unschedule(this.autoFunction);