Commit b3a9e6f0 authored by Tt's avatar Tt

处理位置坐标等问题

parent 426ea164
...@@ -5215,7 +5215,7 @@ ...@@ -5215,7 +5215,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-414.489, -396.6,
0, 0,
0, 0,
0, 0,
...@@ -5288,7 +5288,7 @@ ...@@ -5288,7 +5288,7 @@
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 0, "_top": 0,
"_bottom": 75.11100000000005, "_bottom": 93,
"_verticalCenter": 0, "_verticalCenter": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
......
...@@ -58,7 +58,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -58,7 +58,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
public layer_item_little: cc.Node = null; public layer_item_little: cc.Node = null;
_cantouch = null; _cantouch = null;
private list: Array<{ type, text, right, imgage, duration, content, audio, npcAudio, npcPlay }>; private list: Array<{ rightPlay, type, text, right, imgage, duration, content, audio, npcAudio, npcPlay }>;
private recordFlag: number;//录音模式 private recordFlag: number;//录音模式
private score: number; private score: number;
private scoreList: Array<number>; private scoreList: Array<number>;
...@@ -322,16 +322,23 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -322,16 +322,23 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 播放文字内容 // 播放文字内容
this.label_word.active = true; this.label_word.active = true;
pg.view.setString(this.label_word, this.recordAudioWord); pg.view.setString(this.label_word, this.recordAudioWord);
// 播放鼓励
this.ani_good.active = true;
pg.hw.playLocalAudio("right")
pg.view.playDBAnimation(this.ani_good, 'newAnimation', 1);
this._cantouch = false; this._cantouch = false;
this.scheduleOnce(() => { // 播放鼓励
if (!this.CurrentData.rightPlay) {
this.CurrentData.rightPlay = true;
this.ani_good.active = true;
pg.view.playDBAnimation(this.ani_good, 'newAnimation', 1);
pg.hw.playLocalAudio("right")
this.scheduleOnce(() => {
this._cantouch = true;
this.ani_good.active = false;
resolve('');
}, 1)
} else {
this._cantouch = true; this._cantouch = true;
this.ani_good.active = false; this.ani_good.active = false;
resolve(''); resolve('');
}, 1) }
}); });
} }
......
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