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

21 lines
576 B
JavaScript

var $9leveltips_game1 = require("leveltips_game1");
cc.Class({
extends: cc.Component,
properties: {
tishiTex: cc.Label
},
onLoad: function () {
cc.PlatformTools.executeShowBanner();
cc.PlatformTools.executeShowInterstitial();
},
start: function () {
this.tishiTex.string = $9leveltips_game1[cc.global.levellist[cc.global.level - 1]].tishi;
},
onBtnClickEvent: function (e) {
cc.global.Source.onPlayBtnEffect("buttonClick");
switch (e.target.name) {
case "btn_guanbi":
GlobData.GameBtnClose(this.node, false);
}
}
});