Commit ce92acb6 authored by LikG21's avatar LikG21

时间修改

parent df3e0fdd
......@@ -130,7 +130,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
startQuestion() {
// 游戏所需的初始化数据
this.currentId = 0
this.time = this.data.options.length * 4
this.time = this.data.options.length * 3
this.currentTime = this.time * 1000;
this.lengthProgress = 0
this.right = 0
......@@ -191,6 +191,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.state = State.Recording;
this.hideAnswer();
this.currentId++;
this.currentTime = (this.time - this.currentId * 3)*1000
if (!this.getCurrentOptions()) {
this.gameOver();
return;
......
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