调整动画效果
This commit is contained in:
@@ -47,7 +47,7 @@ export class GameDone extends Laya.Script {
|
|||||||
|
|
||||||
onAwake(): void {
|
onAwake(): void {
|
||||||
this.owner.x = 0
|
this.owner.x = 0
|
||||||
this.owner.y = -this.owner.height
|
this.owner.y = 0
|
||||||
|
|
||||||
this.obj_panel.alpha = 0
|
this.obj_panel.alpha = 0
|
||||||
this.obj_panel.scaleX = 0.8
|
this.obj_panel.scaleX = 0.8
|
||||||
@@ -65,7 +65,7 @@ export class GameDone extends Laya.Script {
|
|||||||
|
|
||||||
onStart(): void {
|
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, { alpha: 1 }, 400, Laya.Ease.elasticOut, null, 100)
|
||||||
Laya.Tween.to(this.obj_panel, { scaleX: 1, scaleY: 1 }, 400, Laya.Ease.elasticOut, null, 100)
|
Laya.Tween.to(this.obj_panel, { scaleX: 1, scaleY: 1 }, 400, Laya.Ease.elasticOut, null, 100)
|
||||||
|
|||||||
Reference in New Issue
Block a user