Commit eeebc9b0 authored by Lwd's avatar Lwd

commit

parent dc67c3db
/** /**
* 音效 * 音效
*/ */
...@@ -45,14 +45,14 @@ var speaker = cc.Class({ ...@@ -45,14 +45,14 @@ var speaker = cc.Class({
//播放正确音效 //播放正确音效
playRightEffect: function (cb) { playRightEffect: function (cb) {
let num = OP26.utils.randFromTo_Int(0, this.eff_right.length); let num = OP26.utils.randFromTo_Int(0, this.eff_right.length-1);
OP26.snd_mgr.playEffect(this.eff_right[num], cb); OP26.snd_mgr.playEffect(this.eff_right[num], cb);
}, },
//播放失败音效 //播放失败音效
playErrorEffect: function (cb) { playErrorEffect: function (cb) {
let num = OP26.utils.randFromTo_Int(0, this.eff_error.length); let num = OP26.utils.randFromTo_Int(0, this.eff_error.length-1);
OP26.snd_mgr.playEffect(this.eff_error[num], cb); OP26.snd_mgr.playEffect(this.eff_error[num], cb);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment