woso_javan пре 2 месеци
родитељ
комит
cf27da4b0e

+ 10 - 1
assets/module_basic/config/main_config.json

@@ -1 +1,10 @@
-{"1":{"param":5,"content":"加时弹窗获得的时间,单位秒"},"2":{"param":2,"content":"吸力范围,填黑洞当前直径的倍数"}}
+{
+    "1": {
+        "param": 5,
+        "content": "加时弹窗获得的时间,单位秒"
+    },
+    "2": {
+        "param": 2,
+        "content": "吸力范围,填黑洞当前直径的倍数"
+    }
+}

+ 9 - 2
assets/module_take_goblet/Script/Component/TempCup.ts

@@ -5,6 +5,8 @@ import { EventDispatcher } from 'db://assets/core_tgx/easy_ui_framework/EventDis
 import { GameEvent } from '../Enum/GameEvent';
 import { GameUtil } from '../GameUtil';
 import { TakeGobletAudioMgr } from '../Manager/TakeGobletAudioMgr';
+import { GlobalConfig } from 'db://assets/start/Config/GlobalConfig';
+import { AdvertMgr } from 'db://assets/core_tgx/base/ad/AdvertMgr';
 const { ccclass, property } = _decorator;
 
 //暂存杯状态 默认 接水 倒水
@@ -55,8 +57,13 @@ export class TempCup extends Component {
 
     private onTouchEndAdCup() {
         if (this.iconAd) {
-            this.adNode.active = false;
-            console.log('关闭广告图标@@@@@');
+            if (!GlobalConfig.isDebug) {
+                AdvertMgr.instance.showReawardVideo(() => {
+                    this.adNode.active = false;
+                })
+            } else {
+                this.adNode.active = false;
+            }
         }
     }
 

+ 1 - 1
assets/start/Config/GlobalConfig.ts

@@ -1,5 +1,5 @@
 export const GlobalConfig = {
-    isDebug: true,
+    isDebug: false,
     initilizeLevel: 1,//初始关卡
     levelTotal: 50,   //最大关卡等级
 }

+ 1 - 1
build-templates/web-mobile/index.html

@@ -82,7 +82,7 @@
         var adSdkConfig = {
           el: document.querySelector("GameDiv"),
           client: 'cpsense',
-          is_test: true
+          is_test: false
         };
         var adInstance = new adSdk(adSdkConfig);
         window.adInstance = adInstance;