动画问题

This commit is contained in:
2025-05-28 17:32:34 +08:00
parent 09979e21e7
commit 183060ff95

View File

@@ -81,15 +81,14 @@ export class Block extends Laya.Script {
}
public setFadeAnimation(): void {
var color = this.label_show.color
Laya.timer.once(200, this, ()=>{
this.label_show.color = "#ff0000"
Laya.timer.once(100, this, ()=>{
this.label_show.color = color
this.label_show.color = "#2d3138"
Laya.timer.once(200, this, ()=>{
this.label_show.color = "#ff0000"
Laya.timer.once(100, this, ()=>{
this.label_show.color = color
this.updateBlock()
})
})
})