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

提交

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