Level_Style.js 422 B

123456789101112131415161718
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. },
  5. onLoad: function () {
  6. if(Global.Style == 0){
  7. this.node.getComponent(cc.Label).string = 'Pets';
  8. }else if(Global.Style == 1){
  9. this.node.getComponent(cc.Label).string = 'Fruits';
  10. }else if(Global.Style == 2){
  11. this.node.getComponent(cc.Label).string = 'Emoji(Hard)';
  12. }
  13. },
  14. });