Commit 7a57e815 authored by Tt's avatar Tt

录音时间及默认值调整

parent 0bf312fc
...@@ -101,7 +101,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -101,7 +101,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private countDown: number = 999999; private countDown: number = 999999;
private timeCount: number; private timeCount: number;
private startCount = 20; private startCount = 15;
async initView() { async initView() {
cc.audioEngine.stopAllEffects(); cc.audioEngine.stopAllEffects();
this.layout_start = pg.view.find(this, "layout_start"); this.layout_start = pg.view.find(this, "layout_start");
...@@ -558,6 +558,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -558,6 +558,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.audioEngine.stopAllEffects(); cc.audioEngine.stopAllEffects();
this.bg_countdown.active = true; this.bg_countdown.active = true;
this.countDown = this.startCount; this.countDown = this.startCount;
this.countDown = this.touchData.time || this.startCount; //this.startCount;
let end = pg.view.find(this, "end"); let end = pg.view.find(this, "end");
let bg_tryagain = pg.view.find(end, "bg_tryagain") let bg_tryagain = pg.view.find(end, "bg_tryagain")
......
...@@ -24,6 +24,7 @@ export class Option { ...@@ -24,6 +24,7 @@ export class Option {
public data; public data;
public id: number; public id: number;
public count: number; public count: number;
public time: number;
public fish: Fish; public fish: Fish;
constructor(data, id) { constructor(data, id) {
...@@ -31,6 +32,7 @@ export class Option { ...@@ -31,6 +32,7 @@ export class Option {
this.data = data; this.data = data;
this.type = data.type; this.type = data.type;
this.txt = data.text; this.txt = data.text;
this.time = data.time;
this.picUrl = data.image; this.picUrl = data.image;
this.audioUrl = data.audio; this.audioUrl = data.audio;
this.right = data.right; this.right = data.right;
......
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