MonthCardLayer.js 699 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import SoundMgr from "../base/SoundMgr";
  2. var baseLayer = require('BaseLayer');
  3. cc.Class({
  4. extends: baseLayer,
  5. properties: {
  6. yLab1: cc.Label,
  7. yLab2: cc.Label,
  8. yGetNode: cc.Node,
  9. yBuyNode: cc.Node,
  10. pLab1: cc.Label,
  11. pLab2: cc.Label,
  12. pGetNode: cc.Node,
  13. pBuyNode: cc.Node,
  14. },
  15. // LIFE-CYCLE CALLBACKS:
  16. // onLoad () {},
  17. start () {
  18. },
  19. // update (dt) {},
  20. onClickYBuy(){
  21. SoundMgr.playClick();
  22. },
  23. onClickYGet(){
  24. SoundMgr.playClick();
  25. },
  26. onClickPBuy(){
  27. SoundMgr.playClick();
  28. },
  29. onClickPGet(){
  30. SoundMgr.playClick();
  31. },
  32. });