整理代码格式

This commit is contained in:
2025-06-19 20:15:57 +08:00
parent ea0e00f495
commit 14661e7bf4
2 changed files with 10 additions and 10 deletions

View File

@@ -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)

View File

@@ -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
}
}