|
|
@@ -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);
|