WaveUI.js 481 B

123456789101112131415161718192021222324252627
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. // labelWave: cc.Label,
  5. // anim: cc.Animation
  6. },
  7. // use this for initialization
  8. onLoad: function () {
  9. },
  10. show (num) {
  11. // this.labelWave.string = num;
  12. // this.anim.play('wave-pop');
  13. },
  14. hide () {
  15. this.node.active = false;
  16. }
  17. // called every frame, uncomment this function to activate update callback
  18. // update: function (dt) {
  19. // },
  20. });