Commit 7256b71c authored by yu's avatar yu

1

parent 9dbec023
......@@ -197,7 +197,7 @@ export default class LayerRecord extends cc.Component {
"fluency": 60,
"rhythm": 90,
"kernel_version": "5.2.4",
"overall": 55,//75
"overall": 1,//75
"integrity": 100,
"duration": "6.779",
"rear_tone": "fall",
......
This diff is collapsed.
......@@ -138,6 +138,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (self.tempCount == 2) {
self.score += 1;
self.layout_card.active = false;
self.isTouch = false;
// pg.event.once('layer_coin_show_coin_end', () => {
// this.nextLayer();
// }) // 动画回调
......@@ -148,6 +149,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
targetTime: self.touchData.time,
reset: false
})
pg.event.emit("layer_record_start");
}
})
pg.event.emit('layer_right_show_tryagain')
......@@ -155,6 +157,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.event.once('layer_right_show_good_end', () => {
this.score += 2;
this.layout_card.active = false;
self.isTouch = false;
// pg.event.once('layer_coin_show_coin_end', () => {
// this.nextLayer();
// }) // 动画回调
......@@ -165,6 +168,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.event.once('layer_right_show_excellent_end', () => {
this.score += 3;
this.layout_card.active = false;
self.isTouch = false;
// pg.event.once('layer_coin_show_coin_end', () => {
// this.nextLayer();
// }) // 动画回调
......@@ -208,6 +212,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
//开始
this.showQuestions();
}
private isTouch = false;
private showQuestions() {
let len = Game.getIns().len;
let count = len >= 4 ? 4 : len;
......@@ -221,6 +226,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
intact.active = true;
broken.active = false;
egg.on(cc.Node.EventType.TOUCH_END, () => {
if (this.isTouch) return;
this.isTouch = true;
this.stopArrowAction();
this.hammerAction(egg.getPosition()).then(async () => {
let di = cc.find("di", egg);
......@@ -262,6 +269,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
return new Promise((resolve, reject) => {
if (!data) {
self.layout_card.active = false;
self.isTouch = false;
return;
}
self.layout_card.active = true;
......
......@@ -30,6 +30,7 @@ export const defaultData = {
}
],
"npcTitle": "hi fiddler",
"npcAudio": "http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3",
"npcAudio": "",
// "npcAudio": "http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3",
"npcAudioName": "bear_2.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