| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- /*
- * @Author: mojunshou 1637302775@qq.com
- * @Date: 2025-04-15 20:16:16
- * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-17 10:02:59
- * @Description: 继续二倍速
- */
- import { _decorator, Component, Node } from 'cc';
- import { oops } from 'db://oops-framework/core/Oops';
- import { GameComponent } from 'db://oops-framework/module/common/GameComponent';
- import { AD_TYPE } from '../common/config/GameDefine';
- import { UIID } from '../common/config/GameUIConfig';
- import { ADHandler } from '../common/manager/ADHandler';
- import { smc } from '../common/SingletonModuleComp';
- const { ccclass, property } = _decorator;
- @ccclass('keepDoubleSpeedView')
- export class keepDoubleSpeedView extends GameComponent {
- start() {
- this.setButton();
- }
- private btn_open() {
- this.openAd();
- oops.gui.remove(UIID.KeepSpeed);
- }
- //打开广告
- private openAd() {
- smc.game.GameModel.viewType = "speed_reward";
- ADHandler.inst.showAd(AD_TYPE.Double_Speed_Receive);
- }
- private btn_no() {
- oops.gui.remove(UIID.KeepSpeed);
- ADHandler.inst.showAd("107");
- }
- private btn_close() {
- oops.gui.remove(UIID.KeepSpeed);
- //播放插屏广告
- ADHandler.inst.showAd("107");
- }
- }
|