zouyong 5 лет назад
Родитель
Сommit
b59e5c3bb8

+ 4 - 4
assets/resources/module/turnable/turnable.prefab

@@ -2788,7 +2788,7 @@
     "asset": {
       "__uuid__": "18e0b7f8-059f-4a52-9e57-690fe778a31a"
     },
-    "fileId": "fdfjeLbuxNhL06oNXr01uY",
+    "fileId": "1fN/LnElpKsYLei+CS/TFW",
     "sync": false
   },
   {
@@ -2920,7 +2920,7 @@
     "asset": {
       "__uuid__": "18e0b7f8-059f-4a52-9e57-690fe778a31a"
     },
-    "fileId": "51yUASr+BEiZU6Das9s9fd",
+    "fileId": "7fUJTp7ElGNI8aCqv8feSY",
     "sync": false
   },
   {
@@ -3052,7 +3052,7 @@
     "asset": {
       "__uuid__": "18e0b7f8-059f-4a52-9e57-690fe778a31a"
     },
-    "fileId": "5bYhEtuH5POL0zjYqZhlso",
+    "fileId": "3fHoh0/txA9IcjuuQ0r5Zh",
     "sync": false
   },
   {
@@ -3265,7 +3265,7 @@
     "asset": {
       "__uuid__": "18e0b7f8-059f-4a52-9e57-690fe778a31a"
     },
-    "fileId": "dcAfYrg3lHsrkPgRWQve1o",
+    "fileId": "c6DhHc9wZJupNy7E4AG9CP",
     "sync": false
   },
   {

+ 6 - 7
assets/script/game/module/module/turntable/Turnable.ts

@@ -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() {