diff --git a/src/views/Difficulty.ts b/src/views/Difficulty.ts index fcae667..0657bb6 100644 --- a/src/views/Difficulty.ts +++ b/src/views/Difficulty.ts @@ -34,11 +34,11 @@ export class Difficulty extends Laya.Script { }) } -destroyUI(): void { - Laya.Tween.to(this.mask, { alpha: 0 }, 400, Utility_EaseOut_2, Laya.Handler.create(this, () => { - this.owner.destroy() - })) -} + destroyUI(): void { + Laya.Tween.to(this.mask, { alpha: 0 }, 400, Utility_EaseOut_2, Laya.Handler.create(this, () => { + this.owner.destroy() + })) + } onStart(): void { Laya.Tween.to(this.offset, { y: 0 }, 200) diff --git a/src/views/common/AutoRotate.ts b/src/views/common/AutoRotate.ts index 1d13b57..4b3219a 100644 --- a/src/views/common/AutoRotate.ts +++ b/src/views/common/AutoRotate.ts @@ -10,10 +10,10 @@ export class AutoRotate extends Laya.Script { private begin = 0 onLateUpdate(): void { - this.begin += this.speed - if (this.begin >= 360) { - this.begin = 0 - } - this.owner.rotation = this.begin + this.begin += this.speed + if (this.begin >= 360) { + this.begin = 0 + } + this.owner.rotation = this.begin } }