12345678910111213141516171819202122232425262728293031 |
- var baseLayer = require('BaseLayer');
- import SoundMgr from "../base/SoundMgr";
- cc.Class({
- extends: baseLayer,
- properties: {
- rule: cc.Node,
- },
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {},
- start () {
- },
-
- onClickRule(){
- SoundMgr.playClick();
- this.rule.active = !this.rule.active;
- },
- onClickGo(){
- SoundMgr.playClick();
- },
- });
|