From 14661e7bf40183bf84cc0cb5db6b95a72ba8c371 Mon Sep 17 00:00:00 2001 From: yangwen Date: Thu, 19 Jun 2025 20:15:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Difficulty.ts | 10 +++++----- src/views/common/AutoRotate.ts | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) 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 } }