整理代码格式
This commit is contained in:
@@ -34,11 +34,11 @@ export class Difficulty extends Laya.Script {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
destroyUI(): void {
|
destroyUI(): void {
|
||||||
Laya.Tween.to(this.mask, { alpha: 0 }, 400, Utility_EaseOut_2, Laya.Handler.create(this, () => {
|
Laya.Tween.to(this.mask, { alpha: 0 }, 400, Utility_EaseOut_2, Laya.Handler.create(this, () => {
|
||||||
this.owner.destroy()
|
this.owner.destroy()
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
onStart(): void {
|
onStart(): void {
|
||||||
Laya.Tween.to(this.offset, { y: 0 }, 200)
|
Laya.Tween.to(this.offset, { y: 0 }, 200)
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ export class AutoRotate extends Laya.Script {
|
|||||||
private begin = 0
|
private begin = 0
|
||||||
|
|
||||||
onLateUpdate(): void {
|
onLateUpdate(): void {
|
||||||
this.begin += this.speed
|
this.begin += this.speed
|
||||||
if (this.begin >= 360) {
|
if (this.begin >= 360) {
|
||||||
this.begin = 0
|
this.begin = 0
|
||||||
}
|
}
|
||||||
this.owner.rotation = this.begin
|
this.owner.rotation = this.begin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user