Commit 355fdf63 authored by 章红平's avatar 章红平

提交

parent 8677d8cb
export const defaultData = {
"questions": [
{
"text": "dog",
"text": "dogdg",
"audio": "http://staging-teach.cdn.ireadabc.com/dfb27b510e121a1045a3b7613a530e43.mp3",
"dragonBoneData": {
"skeJsonData": {
......
......@@ -64,8 +64,10 @@ export default class panel extends cc.Component {
picesN.removeAllChildren()
let strs = data.text.split("");
console.log("strs===", strs)
let findRigth=false;
for (let i = 0; i < strs.length; i++) {
if (strs[i] == data.rightLetter) {
if (strs[i] == data.rightLetter&&!findRigth) {
findRigth=true;
index = i
continue
}
......
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