Coin.js 480 B

1234567891011121314151617181920
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. coin:cc.Label,
  5. button: cc.Button,
  6. },
  7. onLoad: function () {
  8. // this.button.node.on('click', this.callback, this);
  9. },
  10. // called every frame
  11. update: function (dt) {
  12. this.coin.string = Storage.GetCoin();
  13. },
  14. // callback: function (event) {
  15. // Audio.playeffect('resources/audio/sound_click.mp3');
  16. // cc.find('Canvas/Store').active = true;
  17. // }
  18. });