fix代码格式

This commit is contained in:
2025-05-29 19:15:32 +08:00
parent d5d00fa5ed
commit 6d33a9c8f1
5 changed files with 33 additions and 39 deletions

View File

@@ -45,33 +45,33 @@ export class GameDone extends Laya.Script {
onStart(): void {
this.owner.x = 0
this.owner.y = -this.owner.height
Laya.Tween.to(this.owner, {y: 0}, 300, Laya.Ease.elasticOut)
Laya.Tween.to(this.owner, { y: 0 }, 300, Laya.Ease.elasticOut)
this.obj_summary.alpha = 0
Laya.Tween.to(this.obj_summary, {alpha: 1}, 400, Laya.Ease.elasticOut, null, 100)
Laya.Tween.to(this.obj_summary, { alpha: 1 }, 400, Laya.Ease.elasticOut, null, 100)
this.obj_summary.scaleX = 0.8
this.obj_summary.scaleY = 0.8
Laya.Tween.to(this.obj_summary, {scaleX: 1, scaleY: 1}, 400, Laya.Ease.elasticOut, null, 100)
Laya.Tween.to(this.obj_summary, { scaleX: 1, scaleY: 1 }, 400, Laya.Ease.elasticOut, null, 100)
this.star1.scaleX = 1.2
this.star1.scaleY = 1.2
Laya.Tween.to(this.star1, {scaleX: 1, scaleY: 1}, 300, Laya.Ease.elasticOut, null, 400)
Laya.Tween.to(this.star1, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.elasticOut, null, 400)
const y1 = this.star1.y
this.star1.y = y1 - 10
Laya.Tween.to(this.star1, {y: y1}, 300, Laya.Ease.elasticOut, null, 400)
Laya.Tween.to(this.star1, { y: y1 }, 300, Laya.Ease.elasticOut, null, 400)
this.star2.scaleX = 1.2
this.star2.scaleY = 1.2
Laya.Tween.to(this.star2, {scaleX: 1, scaleY: 1}, 300, Laya.Ease.elasticOut, null, 600)
Laya.Tween.to(this.star2, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.elasticOut, null, 600)
const y2 = this.star2.y
this.star2.y = y2 - 10
Laya.Tween.to(this.star2, {y: y2}, 300, Laya.Ease.elasticOut, null, 600)
Laya.Tween.to(this.star2, { y: y2 }, 300, Laya.Ease.elasticOut, null, 600)
this.obj_light.alpha = 0
Laya.Tween.to(this.obj_light, {alpha: 0.2}, 500, Laya.Ease.elasticOut, null, 800)
Laya.Tween.to(this.obj_light, { alpha: 0.2 }, 500, Laya.Ease.elasticOut, null, 800)
this.btn_new.alpha = 0
Laya.Tween.to(this.btn_new, {alpha: 1}, 300, Laya.Ease.elasticOut, null, 1000)
Laya.Tween.to(this.btn_new, { alpha: 1 }, 300, Laya.Ease.elasticOut, null, 1000)
}
public onSetStageInfo(doStage: DOStage): void {