cristianoxin 1 month ago
parent
commit
1cc94a812d
  1. 9
      assets/20015/src/content/ui/RingGame20015Main.ts

9
assets/20015/src/content/ui/RingGame20015Main.ts

@ -81,7 +81,8 @@ export class RingGame20015Main extends Component{
return;
}
if(this.isSpeedUp){
if(!this.isCanStop&&(this.speed < this.rollSpeed)) this.speed += this.averageSpeedUp;
// if(!this.isCanStop&&(this.speed < this.rollSpeed)) this.speed += this.averageSpeedUp;
if(this.speed < this.rollSpeed) this.speed += this.averageSpeedUp;
}else{
this.speed = this.idleSpeed;
}
@ -150,9 +151,13 @@ export class RingGame20015Main extends Component{
}
private notAutoStop(){
this.isSpeedUp = false;
this.isRoll = false;
this.isCanStop = false;
this.tweenRollEddect();
}
private tweenRollEddect(){
if(!this.gameResult) return
let tw:Tween<Node> = tween(this.roll)
.to(0.5,{eulerAngles:v3(0,0,-this.stopAngle)})
.call(()=>{
@ -164,6 +169,7 @@ export class RingGame20015Main extends Component{
}
private winShowEffect(){
if(!this.gameResult) return
AudioManager.getInstance().stopSound(RingGame20015Sound.turn);
this.winBet.string = "x" + `${this.gameResult.multiple}`;
this.winNum.string = `${CommTool20015.RideThousand(this.gameResult.winAmount)}`;
@ -196,6 +202,7 @@ export class RingGame20015Main extends Component{
this.isRoll = false;
Message.send(RingGame20015Event.SHOW_WIM_MULTIPLE,false);
Message.send(RingGame20015Event.SHOW_BET_RESULT,this.gameResult);
this.gameResult = null;
})
.start();
}

Loading…
Cancel
Save