laya tween闪烁效果
tweenBlink(item:any){ Laya.Tween.to(item, { alpha:0 }, 400, Laya.Ease.cubicIn, Laya.Handler.create(this, () => { Laya.Tween.to(item, { alpha:1 }, 400, Laya.Ease.cubicIn, Laya.Handler.create(this, () => { this.tweenanniu(item) })) })) }
其实就是修改透明度, 先修改到1与0之间来回慢慢渐变.
浙公网安备 33010602011771号