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