ShowNotEnoughMoney.js 297 B

1234567891011121314151617
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. },
  5. start () {
  6. this.schedule(function(){
  7. this.node.destroy();
  8. }.bind(this),1,0);
  9. },
  10. Text(string)
  11. {
  12. this.node.getChildByName('label').getComponent(cc.Label).string = string;
  13. }
  14. });