cc.Class({ extends: cc.Component, properties: { nd_cover: { default: null, type: cc.Node, }, }, onLoad() { this.hasChoose = false; }, getHasChoose() { return this.hasChoose; }, showCover() { this.nd_cover.active = true; }, hideCover() { this.nd_cover.active = false; }, });