cc.Class({
extends: cc.Component,
properties: {
fontName:{
default:"PingFang SC",
type:cc.String
}
},
// use this for initialization
onLoad: function () {
var label = this.node.getComponent(cc.Label);
if(label){
label._sgNode.setSystemFontName(this.fontName);
}
this.enabled = false;
},
});
