完善结算页动效
This commit is contained in:
@@ -24,6 +24,9 @@ export class GameDone extends Laya.Script {
|
||||
@property(Laya.Image)
|
||||
public star2: Laya.Image
|
||||
|
||||
@property(Laya.Image)
|
||||
public star3: Laya.Image
|
||||
|
||||
@property(Laya.Image)
|
||||
public star4: Laya.Image
|
||||
|
||||
@@ -59,6 +62,9 @@ export class GameDone extends Laya.Script {
|
||||
this.star2.scaleX = 1.2
|
||||
this.star2.scaleY = 1.2
|
||||
|
||||
this.star3.scaleX = 1.2
|
||||
this.star3.scaleY = 1.2
|
||||
|
||||
this.star4.scaleX = 1.2
|
||||
this.star4.scaleY = 1.2
|
||||
}
|
||||
@@ -79,16 +85,21 @@ export class GameDone extends Laya.Script {
|
||||
this.star2.y = y2 - 10
|
||||
Laya.Tween.to(this.star2, { y: y2 }, 300, Laya.Ease.elasticOut, null, 600)
|
||||
|
||||
Laya.Tween.to(this.star3, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.elasticOut, null, 800)
|
||||
const y3 = this.star3.y
|
||||
this.star3.y = y3 - 10
|
||||
Laya.Tween.to(this.star3, { y: y3 }, 300, Laya.Ease.elasticOut, null, 800)
|
||||
|
||||
Laya.Tween.to(this.star4, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.elasticOut, null, 600)
|
||||
const y4 = this.star4.y
|
||||
this.star4.y = y4 - 10
|
||||
Laya.Tween.to(this.star4, { y: y4 }, 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, 1000)
|
||||
|
||||
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, 1200)
|
||||
}
|
||||
|
||||
public onSetStageInfo(doStage: DOStage): void {
|
||||
|
||||
Reference in New Issue
Block a user