Commit a2f48fc0 authored by Tt's avatar Tt

选项增加唯一识别

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