调整动画效果

This commit is contained in:
2025-05-30 19:00:27 +08:00
parent ae2229927f
commit ddb00a010b

View File

@@ -47,7 +47,7 @@ export class GameDone extends Laya.Script {
onAwake(): void {
this.owner.x = 0
this.owner.y = -this.owner.height
this.owner.y = 0
this.obj_panel.alpha = 0
this.obj_panel.scaleX = 0.8
@@ -65,7 +65,7 @@ export class GameDone extends Laya.Script {
onStart(): void {
Laya.Tween.to(this.owner, { y: 0 }, 300, Laya.Ease.elasticOut)
// Laya.Tween.to(this.owner, { y: 0 }, 300, Laya.Ease.elasticOut)
Laya.Tween.to(this.obj_panel, { alpha: 1 }, 400, Laya.Ease.elasticOut, null, 100)
Laya.Tween.to(this.obj_panel, { scaleX: 1, scaleY: 1 }, 400, Laya.Ease.elasticOut, null, 100)