Commit a2f48fc0 authored by Tt's avatar Tt

选项增加唯一识别

parent 8df20262
......@@ -1961,7 +1961,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 152.6,
"width": 150.74,
"height": 63
},
"_anchorPoint": {
......@@ -2047,7 +2047,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
210.81399999999996,
208.95399999999995,
0,
0,
0,
......
......@@ -97,6 +97,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.gameOver();
return;
}
this.currentQuestion.options = this.currentQuestion.options.map((op, i) => {
op.id = i;
return op;
})
this.startCreate = false;
this.createCount = -1;
this.lastTime = new Date().getTime();
......
......@@ -31,10 +31,10 @@ export const defaultData =
"type": "txt",
"image": "",
"audio": "",
"text": "old",
"text": "bad",
"duration": "",
"content": "",
"right": false
"right": true
},
{
"type": "img",
......@@ -58,10 +58,10 @@ export const defaultData =
"type": "txt",
"image": "",
"audio": "",
"text": "Beijing Opera",
"text": "bad",
"duration": "",
"content": "",
"right": false
"right": true
}
],
"audioName": "bad.mp3"
......@@ -132,8 +132,8 @@ export const defaultData =
"bgAudioName": "",
"audioName": "",
"npcTitle": "Warm UP",
"npcAudio": "http://staging-teach.cdn.ireadabc.com/cd8faccc65b1b6f89badcc87898a0559_l.mp3",
"npcAudioName": "HY11欢乐泡泡-听音并选择你认为正确的答案.mp3"
// "npcAudio": "http://staging-teach.cdn.ireadabc.com/cd8faccc65b1b6f89badcc87898a0559_l.mp3",
// "npcAudioName": "HY11欢乐泡泡-听音并选择你认为正确的答案.mp3"
}
// {
......
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