123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import SoundMgr from "../base/SoundMgr";
- var baseLayer = require('BaseLayer');
- cc.Class({
- extends: baseLayer,
- properties: {
- yLab1: cc.Label,
- yLab2: cc.Label,
- yGetNode: cc.Node,
- yBuyNode: cc.Node,
- pLab1: cc.Label,
- pLab2: cc.Label,
- pGetNode: cc.Node,
- pBuyNode: cc.Node,
-
- },
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {},
- start () {
-
- },
- // update (dt) {},
- onClickYBuy(){
- SoundMgr.playClick();
- },
- onClickYGet(){
- SoundMgr.playClick();
- },
- onClickPBuy(){
- SoundMgr.playClick();
- },
- onClickPGet(){
- SoundMgr.playClick();
- },
- });
|