Commit c4f1d402 authored by 李帅's avatar 李帅

+1

parent cee553b3
/*
* @Author: ls
* @Date: 2022-05-15 18:22:18
* @LastEditTime: 2022-06-13 20:02:45
* @LastEditTime: 2022-06-14 16:10:58
* @LastEditors: ls
* @Description:
* @FilePath: \ls_gramophone\assets\ls_gramophone\scene\ls_gramophone.ts
......@@ -9,7 +9,6 @@
import Item from '../script/Item';
import { MyCocosSceneComponent } from '../script/MyCocosSceneComponent';
import { onHomeworkFinish } from '../script/util';
const { ccclass, property } = cc._decorator;
......@@ -210,7 +209,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
cd = this.data.sentences[this._curIndex].duration;
}
this.unschedule(this.onCountdown);
this._countdown = cd + 1;
this._countdown = Number(cd) + 1;
this.onCountdown();
this.schedule(this.onCountdown, 1);
......@@ -303,7 +302,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (res && res.audioUrl) {
if (idx !== -1) {
this._records[idx] = res.audioUrl;
onHomeworkFinish(res);
this.log(`${idx} ===> ${res.audioUrl}`);
// onHomeworkFinish(res);
}
}
});
......
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