整理代码格式
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user