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(); }, });