12345678910111213141516171819202122232425262728293031 |
- cc.Class({
- extends: cc.Component,
- properties: {
- button: cc.Button,
- },
-
-
-
-
-
-
-
-
-
- onLoad: function () {
- this.button.node.on('click', this.callback, this);
- },
-
- update: function (dt) {
- },
- callback: function (event) {
- Audio.playeffect('resources/audio/sound_click.mp3');
- cc.director.pause();
- cc.find('Canvas/Tip').active = true;
- }
- });
|