pubgv3/assets/scripts/UI/season/uishoucebuy.js
zhuguoqing ff550d5d6a init
2022-05-22 10:32:02 +08:00

38 lines
937 B
JavaScript

var NetManage = require("NetManage")
cc.Class({
extends: cc.Component,
properties: {
// foo: {
// // ATTRIBUTES:
// default: null, // The default value will be used only when the component attaching
// // to a node for the first time
// type: cc.SpriteFrame, // optional, default is typeof default
// serializable: true, // optional, default is true
// },
// bar: {
// get () {
// return this._bar;
// },
// set (value) {
// this._bar = value;
// }
// },
},
// LIFE-CYCLE CALLBACKS:
// onLoad () {},
start () {
},
onclose(){
this.node.destroy()
},
onbuy(){
NetManage.buybook(()=>{this.node.destroy()})
},
// update (dt) {},
});