|
|
@@ -1,4 +1,5 @@
|
|
|
import { PanelType } from "../../../../mk/system/UISystem";
|
|
|
+import BtnClosePanel from "../../../component/BtnClosePanel";
|
|
|
import { AdFun } from "../../../data/AdData";
|
|
|
import { GameProp } from "../../../data/GameData";
|
|
|
import TurnableItem from "./TurnableItem";
|
|
|
@@ -18,8 +19,6 @@ export default class Turnable extends cc.Component {
|
|
|
@property(cc.RichText)
|
|
|
lbl_left: cc.RichText = null;
|
|
|
|
|
|
- private isPlaying: boolean = false;
|
|
|
-
|
|
|
onLoad() {
|
|
|
this.initData();
|
|
|
}
|
|
|
@@ -43,19 +42,19 @@ export default class Turnable extends cc.Component {
|
|
|
}
|
|
|
|
|
|
private play() {
|
|
|
- this.isPlaying = 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(3, { angle: tar }, { easing: 'expoInOut' })
|
|
|
+ .to(5, { angle: tar }, { easing: 'expoInOut' })
|
|
|
.call(this.playOver, this).start();
|
|
|
}
|
|
|
|
|
|
- private playOver(){
|
|
|
- this.isPlaying = false;
|
|
|
+ private playOver() {
|
|
|
+ this.btn_close.getComponent(BtnClosePanel).block_click = false;
|
|
|
this.updateLeftTimes();
|
|
|
- mk.ui.openPanel("reward",PanelType.module);
|
|
|
+ mk.ui.openPanel("reward", PanelType.module);
|
|
|
}
|
|
|
|
|
|
updateLeftTimes() {
|