|
|
@@ -417,7 +417,7 @@ return i > 3 && r && Object.defineProperty(e, a, r), r;
|
|
|
Object.defineProperty(a, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var r = t("../../../game/data/GameData"), c = cc._decorator, s = c.ccclass, l = (c.property,
|
|
|
+var r = t("../../../game/data/AdData"), c = t("../../../game/data/GameData"), s = cc._decorator, l = s.ccclass, p = (s.property,
|
|
|
function(t) {
|
|
|
n(e, t);
|
|
|
function e() {
|
|
|
@@ -426,12 +426,12 @@ return null !== t && t.apply(this, arguments) || this;
|
|
|
e.prototype.clickWatchVideo = function() {
|
|
|
var t = this;
|
|
|
mk.audio.playEffect("button");
|
|
|
-mk.ad.videoAdType = r.VideoAdType.video_init_11;
|
|
|
+mk.ad.videoAdType = c.VideoAdType.video_init_11;
|
|
|
mk.ad.watchAd(function(e) {
|
|
|
mk.console.log("watchAD:" + e);
|
|
|
if (e) {
|
|
|
mk.ui.closePanel(t.node.name);
|
|
|
-gData.adData.watchVideo(null);
|
|
|
+gData.adData.watchVideo(r.AdFun.farmSpeedUp);
|
|
|
gData.adUnlockData.unlockFarm();
|
|
|
gData.gameData.popTableScreenADLogic(16);
|
|
|
}
|
|
|
@@ -444,11 +444,12 @@ mk.ad.showNative();
|
|
|
e.prototype.onDisable = function() {
|
|
|
mk.ad.destroyNativeAd();
|
|
|
};
|
|
|
-return i([ s ], e);
|
|
|
+return i([ l ], e);
|
|
|
}(cc.Component));
|
|
|
-a.default = l;
|
|
|
+a.default = p;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
+"../../../game/data/AdData": "AdData",
|
|
|
"../../../game/data/GameData": "GameData"
|
|
|
} ],
|
|
|
ATAndroidBannerJS: [ function(t, e) {
|
|
|
@@ -30562,14 +30563,7 @@ e.prototype.start = function() {
|
|
|
this.airshipAni.node.active = !1;
|
|
|
};
|
|
|
e.prototype.update = function(t) {
|
|
|
-if (gData.gameData.configs.ServerConfig) {
|
|
|
-console.log("gData.gameData.configs.ServerConfig.FlyswitchECPM", gData.gameData.configs.ServerConfig.FlyswitchECPM);
|
|
|
-if (gData.gameData.adShowConfig.average_ecpm < gData.gameData.configs.ServerConfig.FlyswitchECPM) {
|
|
|
-this.airshipAni.node.active = !1;
|
|
|
-return;
|
|
|
-}
|
|
|
-}
|
|
|
-if (this.showRedNum < 1) {
|
|
|
+if (gData.gameData.configs.ServerConfig && gData.gameData.adShowConfig.average_ecpm < gData.gameData.configs.ServerConfig.FlyswitchECPM) this.airshipAni.node.active = !1; else if (this.showRedNum < 1) {
|
|
|
this.countDown += t;
|
|
|
if (this.countDown >= 30) {
|
|
|
this.countDown = 0;
|