Commit 498f083e authored by Tt's avatar Tt

修改bug

parent 131e02f3
......@@ -49,8 +49,8 @@ export default class ImgVoice extends cc.Component {
let p1 = this.img_npc_voice.getChildByName('p1')
let p2 = this.img_npc_voice.getChildByName('p2')
let p3 = this.img_npc_voice.getChildByName('p3')
p1.active = true;
p1.active = false;
p2.active = false;
p3.active = false;
p3.active = true;
}
}
\ No newline at end of file
This diff is collapsed.
......@@ -161,7 +161,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 如果泡泡没有到指定位置不允许点击
let item = e.target;
let data = e.target.data;
if (!data) return;
if (data.right) {
pg.hw.playLocalAudio('right2');
this.scheduleOnce(() => {
pg.hw.playLocalAudio('right')
}, 0.2)
let right = pg.view.find(item, 'right');
right.active = true;
pg.view.playDBAnimation(right, 'newAnimation', 1);
this.rightList.push(data);
this.updatePaoPaoRight(item, data).then(() => {
this.canTouch = true;
......@@ -227,6 +236,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.Tween.stopAllByTarget(img_mouse);
cc.tween(img_mouse).delay(1 / 3).to(1 / 3, { y: defaultMouseY }).call(() => {
this.itemList.push(item);
item.data = null;
resolve("");
}).start();
})
......@@ -266,6 +276,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.tween(img_mouse).delay(1).to(1, { y: defaultMouseY }).call(() => {
this.itemList.push(item);
this.dataList.push(data);
item.data = null;
resolve("");
}).start();
})
......@@ -332,9 +343,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
let defaultMouseY = -110;
img_mouse.y = defaultMouseY;
let posX = [-100, 0, 100];
img_mouse.x = posX[Math.floor(Math.random() * posX.length)]
pg.hw.playLocalAudio('create')
cc.tween(img_mouse).to(1, { y: 0 }).delay(1).to(1, { y: defaultMouseY }).call(() => {
this.itemList.push(item);
this.dataList.push(data);
item.data = null;
}).start();
}
......
{
"ver": "1.1.2",
"uuid": "06c329cf-7254-4422-a06b-a18bbf983e0c",
"uuid": "9e0234fc-cc6f-4ba0-96f2-f3a9ef8b9b30",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
......@@ -176,8 +176,8 @@
<span>{{ question.audioName}}</span>
</div>
</div>
<span style="font-size: 20px;">倒计时: </span>
<input type="text" nz-input [(ngModel)]="question.duration" (blur)="save()">
<!-- <span style="font-size: 20px;">倒计时: </span>
<input type="text" nz-input [(ngModel)]="question.duration" (blur)="save()"> -->
</div>
<!-- <div style="margin-top:20px">
......
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