cc.Class({ extends: cc.Component, properties: { leveltex: cc.Label }, start: function () { this.leveltex.string = "" + cc.global.level; } });