Files
game1/assets/_script/gettishiNum_game1.js
T
tothvillar e896e2ead4 init
2026-07-09 15:04:14 +08:00

23 lines
720 B
JavaScript

cc.Class({
extends: cc.Component,
properties: {},
start: function () {
this.game = "game1";
cc.PlatformTools.executeShowBanner();
cc.PlatformTools.executeShowInterstitial();
},
onClickBtnEvent: function (e) {
cc.global.Source.onPlayBtnEffect("buttonClick");
switch (e.target.name) {
case "btnts_video":
var o = this;
cc.PlatformTools.executeShowAwardVideo(function () {
o.node.removeFromParent(true);
cc.global.LoadPreFtabData("".concat(o.game, "/prefab/gameui/").concat(o.game, "_TiShi"), function () {}.bind(this));
}, function () {});
break;
case "btn_guanbi":
GlobData.GameBtnClose(this.node, false);
}
}
});