init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user