forked from liyupi/daxigua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ads.js
35 lines (23 loc) · 866 Bytes
/
ads.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function noAdGoToScene() {
var GameConfig = __require("GameConfig");
console.log("IndexMainMangerMaing", GameConfig.launchScene, GameConfig.Bros, GameConfig.caS);
var launchScene = GameConfig.launchScene;
var Bros = GameConfig.Bros;
var caS = GameConfig.caS;
cc.director.loadScene(launchScene, null,
function() {
adCompleteFlag = false;
if (Bros) {
// show canvas
var canvas = document.getElementById('GameCanvas');
canvas.style.visibility = '';
var div = document.getElementById('GameDiv');
if (div) {
div.style.backgroundImage = '';
}
}
cc.loader.onProgress = null;
console.log('Success to load scene1Main: ' + launchScene);
}
);
}