init
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
cc.Class({
|
||||
extends: cc.Component,
|
||||
properties: {},
|
||||
start: function () {},
|
||||
clickbtn: function () {
|
||||
cc.global.Source.onPlayBtnEffect("buttonClick");
|
||||
cc.global.LoadPreFtabData("prefab/ui/pushCoins_UI", function () {}.bind(this));
|
||||
},
|
||||
update: function (e) {
|
||||
this.node.getComponent(cc.Label).string = "" + cc.playerData.coin;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user