27 lines
334 B
JavaScript
27 lines
334 B
JavaScript
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;
|
|
},
|
|
});
|