/** * 帮助说明数据 * @author */ const { ccclass, property } = cc._decorator; @ccclass export default class Help extends cc.Component { @property({ type: cc.Label, displayName: '文字说明' }) private lbl_desc: cc.Label = null; onLoad() { } start() { } update(dt) { if (gData.help.init_desc_name) { this.initDesc(); gData.help.init_desc_name = ''; } } private initDesc() { this.lbl_desc.string = gData.help.getDescContent(gData.help.init_desc_name); } }