diff --git a/src/views/Block.ts b/src/views/Block.ts index 9b8ed65..3a83785 100644 --- a/src/views/Block.ts +++ b/src/views/Block.ts @@ -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() }) }) })