Commit d554db1e authored by limingzhe's avatar limingzhe

fix: debug

parent 6372704b
......@@ -494,9 +494,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
console.log("[onFinish] middleLayer not found")
}
})
if (this.data.isShowScore) {
showSRResult();
}
showSRResult(this.data.isShowScore);
}, 1)
}
......
......@@ -493,11 +493,11 @@ export function addSRAudioDuration(key, value) {
}
}
export function showSRResult() {
export function showSRResult(isShowScore) {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.showSRResultByRecord();
middleLayerComponent.showSRResultByRecord(isShowScore);
} else {
console.log('addSRAudioDuration');
}
......
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