|
|
@@ -52,14 +52,13 @@ export default class Turnable extends cc.Component {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private async play() {
|
|
|
+ private async play(index) {
|
|
|
this.audioId = await mk.audio.playEffect("turnableplay", true);
|
|
|
this.btn_close.getComponent(BtnClosePanel).block_click = true;
|
|
|
this.node_turn.angle = 1800;
|
|
|
- let index = 2;
|
|
|
let tar = index * 60;
|
|
|
cc.tween(this.node_turn)
|
|
|
- .to(5, { angle: tar }, { easing: 'expoInOut' })
|
|
|
+ .to(3, { angle: tar })
|
|
|
.call(this.playOver, this).start();
|
|
|
}
|
|
|
|
|
|
@@ -80,7 +79,7 @@ export default class Turnable extends cc.Component {
|
|
|
gData.turnable.requestFinish = false;
|
|
|
}
|
|
|
if (gData.turnable.adData) {
|
|
|
- this.play();
|
|
|
+ this.play(2);
|
|
|
gData.reward.data = gData.turnable.adData;
|
|
|
gData.turnable.adData = null;
|
|
|
}
|