Commit 9cec5578 authored by Tt's avatar Tt

结束后提示音修改

parent aaa4199d
...@@ -794,11 +794,19 @@ cc.Class({ ...@@ -794,11 +794,19 @@ cc.Class({
this.playWordAni(true); this.playWordAni(true);
}, },
onTouchCat() { onTouchCat() {
if (this._playing) return; if (GameManager.getIns().getState() >= 5) {
this._playing = true; if (this._playing) return;
pg.audio.playAudioByUrl(this._cat.wait).then(() => { this._playing = true;
this._playing = false; pg.audio.playAudioByUrl(this._cat.finish).then(() => {
}) this._playing = false;
})
} else {
if (this._playing) return;
this._playing = true;
pg.audio.playAudioByUrl(this._cat.wait).then(() => {
this._playing = false;
})
}
}, },
nextStage() { nextStage() {
......
export const defaultData = { export const defaultData = {
"contentObj": "contentObj": {
{
"picArr": { "picArr": {
"cat": { "cat": {
"start": "http://staging-teach.cdn.ireadabc.com/c3db5ac421ef039cf540edfa5116c831.mp3", "start": "http://staging-teach.cdn.ireadabc.com/1227771664f9dd7b1fe210a7736b76a0.mp3",
"record": "http://staging-teach.cdn.ireadabc.com/2db9fa7c28a11fdbcecfa6a5b5e62319.mp3", "record": "http://staging-teach.cdn.ireadabc.com/d23ad06c538dbe38cdaedb6df8c4c970.mp3",
"wait": "http://staging-teach.cdn.ireadabc.com/aaeb274c49f400c26b05583d481aca09.mp3", "wait": "http://staging-teach.cdn.ireadabc.com/a960789bfe3b3f05c70665a202aecefc.mp3",
"finish": "http://staging-teach.cdn.ireadabc.com/f1ce89b2162d82214369265e47d3dda3.mp3" "finish": "http://staging-teach.cdn.ireadabc.com/672d5518d22c53ce3b1f1b9541f53284.mp3"
}, },
"tryagain": { "tryagain": {
"one": "http://staging-teach.cdn.ireadabc.com/bdc09d9eb89b73e67357b502ae2158dd.mp3", "two": "http://staging-teach.cdn.ireadabc.com/aaeb274c49f400c26b05583d481aca09.mp3", "three": "http://staging-teach.cdn.ireadabc.com/301ec5c708d22928ccf2162215f429fe.mp3" "one": "http://staging-teach.cdn.ireadabc.com/672d5518d22c53ce3b1f1b9541f53284.mp3",
"two": "http://staging-teach.cdn.ireadabc.com/d23ad06c538dbe38cdaedb6df8c4c970.mp3",
"three": "http://staging-teach.cdn.ireadabc.com/8d197ef159b3462dcc861f9bf4efd342.mp3"
}, },
"list": [ "list": [
{ {
"isLast": true, "title": "apple", "bgImg": "http://staging-teach.cdn.ireadabc.com/97e19da9309e4e5aafca5ea2e9db8f46.png", "wordAudio": "http://staging-teach.cdn.ireadabc.com/ab3538f7d4d57ac1abd740bd32f06b2d.mp3", "imgAni": { "ske": { "url": "http://staging-teach.cdn.ireadabc.com/c81816bbb714b22c57267ac5150ee1fe.json", "name": "apple_ske.json" }, "tex": { "url": "http://staging-teach.cdn.ireadabc.com/6088eec0273bc0488d5f66dfb63c1003.json", "name": "apple_tex.json" }, "png": { "url": "http://staging-teach.cdn.ireadabc.com/a51151d68bd74d430e2e586d86c6ddd3.png", "name": "apple_tex.png" } } "isLast": true,
}, { "title": "fox",
"isLast": false, "title": "ant", "bgImg": "http://staging-teach.cdn.ireadabc.com/0600790c4336c3839d90756aca5da45e.png", "wordAudio": "http://staging-teach.cdn.ireadabc.com/ab3538f7d4d57ac1abd740bd32f06b2d.mp3", "imgAni": { "ske": { "url": "http://staging-teach.cdn.ireadabc.com/dd4ede22a761f1f8ec261c93a5306f5c.json", "name": "ant_ske.json" }, "tex": { "url": "http://staging-teach.cdn.ireadabc.com/56078bcdcc7116843a56ecc4c23d3665.json", "name": "ant_tex.json" }, "png": { "url": "http://staging-teach.cdn.ireadabc.com/1a0c95cab05487b003a8dec9dd151ba4.png", "name": "ant_tex.png" } } "bgImg": "http://staging-teach.cdn.ireadabc.com/a5e4b0323a67407c89c1884ec3030d35.png",
}, { "wordAudio": "http://staging-teach.cdn.ireadabc.com/d23ad06c538dbe38cdaedb6df8c4c970.mp3",
"isLast": false, "title": "allaign", "bgImg": "http://staging-teach.cdn.ireadabc.com/97e19da9309e4e5aafca5ea2e9db8f46.png", "wordAudio": "http://staging-teach.cdn.ireadabc.com/ab3538f7d4d57ac1abd740bd32f06b2d.mp3", "imgAni": { "ske": { "url": "http://staging-teach.cdn.ireadabc.com/cf0fd816076652f64cc992c084248a80.json", "name": "alligator_ske.json" }, "tex": { "url": "http://staging-teach.cdn.ireadabc.com/5ece588b347d8fbe05eba19a40c985f0.json", "name": "alligator_tex.json" }, "png": { "url": "http://staging-teach.cdn.ireadabc.com/a84eff5545eca41f3e997ea8a53ac66f.png", "name": "alligator_tex.png" } } "imgAni": {
}] "ske": {
"url": "http://staging-teach.cdn.ireadabc.com/a48f9c115e55e6fc6ca2f8a18b96f716.json",
"name": "img_audio_ske.json"
},
"tex": {
"url": "http://staging-teach.cdn.ireadabc.com/40dbfa196cdcc9b534a9fcdd5539492e.json",
"name": "img_audio_tex.json"
},
"png": {
"url": "http://staging-teach.cdn.ireadabc.com/432859c30af11a34183c0c401271e482.png",
"name": "img_audio_tex.png"
}
}
},
{
"isLast": true,
"title": "box",
"bgImg": "http://staging-teach.cdn.ireadabc.com/d7a4bd2026ebd7a5461fe7ed2c46ea12.png",
"wordAudio": "http://staging-teach.cdn.ireadabc.com/8d197ef159b3462dcc861f9bf4efd342.mp3",
"imgAni": {
"ske": {
"url": "http://staging-teach.cdn.ireadabc.com/a48f9c115e55e6fc6ca2f8a18b96f716.json",
"name": "img_audio_ske.json"
},
"tex": {
"url": "http://staging-teach.cdn.ireadabc.com/40dbfa196cdcc9b534a9fcdd5539492e.json",
"name": "img_audio_tex.json"
},
"png": {
"url": "http://staging-teach.cdn.ireadabc.com/432859c30af11a34183c0c401271e482.png",
"name": "img_audio_tex.png"
}
}
}
]
} }
} }
} }
\ No newline at end of file
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