lhj 3 месяцев назад
Родитель
Сommit
af9d5e7fa4
1 измененных файлов с 12 добавлено и 3 удалено
  1. 12 3
      assets/SubGame/slotNTigerbundle/script/FortuneTigerGameFrameView.ts

+ 12 - 3
assets/SubGame/slotNTigerbundle/script/FortuneTigerGameFrameView.ts

@@ -838,7 +838,8 @@ export default class FortuneTigerGameFrameView extends  cc.Component{//AbstractG
         }
 
         if (score < 0) {
-            cc.director.emit("showNoMoneyTip");
+            // cc.director.emit("showNoMoneyTip");
+            this.frame.showLowLackMoney()
             return;
         }
 
@@ -1027,6 +1028,7 @@ export default class FortuneTigerGameFrameView extends  cc.Component{//AbstractG
                 this.spinAnimation();
                 if (superCount > 0) {
                     this.tigerAnimation("rs_win_exit");
+                    this.redbagActive(true)   
                     // this.spTiger.setAnimation(0, "rs_win_exit", false);
                 }
                 delaySendGameEnd = 3;
@@ -1177,7 +1179,14 @@ export default class FortuneTigerGameFrameView extends  cc.Component{//AbstractG
             })
             .start();
     }
-
+    redbagActive(show:boolean){
+        this.spTiger.node.children[0].active = show;
+    }
+    redbagAinmation(param){
+        let redbag = this.spTiger.node.children[0];
+        let spRedbag = redbag.getComponent(sp.Skeleton);
+        spRedbag.setAnimation(0, param, true);
+    }
     tigerAnimation(param: any) {
         this.radomTigerWaitAnim();
         if (param == "win2" || param == "rs_win") {
@@ -1355,7 +1364,7 @@ export default class FortuneTigerGameFrameView extends  cc.Component{//AbstractG
             });
 
             let redbagPoint = this.spTiger.node.children[0];
-            redbagPoint.active = false;
+            this.redbagActive(false);
             let redbagPos = redbagPoint.convertToWorldSpaceAR(redbagPoint.children[0].getPosition());
             let redbagWorldPos = this.node.convertToNodeSpaceAR(redbagPos);
             nodeRedbag.setPosition(redbagWorldPos);