|
@@ -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;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|