整理代码格式
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
|
||||
export class ResourceManager {
|
||||
private static instance: ResourceManager
|
||||
public static getInstance(): ResourceManager {
|
||||
@@ -9,5 +6,4 @@ export class ResourceManager {
|
||||
}
|
||||
return ResourceManager.instance
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,8 +1,7 @@
|
||||
const { regClass, property } = Laya;
|
||||
const { regClass, property } = Laya
|
||||
|
||||
@regClass()
|
||||
export class Script extends Laya.Script {
|
||||
|
||||
@property(Laya.Label)
|
||||
public title: Laya.Label
|
||||
|
||||
@@ -13,7 +12,7 @@ export class Script extends Laya.Script {
|
||||
public obj_eases: Laya.Box
|
||||
|
||||
onAwake(): void {
|
||||
let list = []
|
||||
const list: Array<any> = []
|
||||
list.push(Laya.Ease.backIn)
|
||||
list.push(Laya.Ease.backInOut)
|
||||
list.push(Laya.Ease.backOut)
|
||||
|
||||
@@ -18,7 +18,6 @@ export class ScoreAdd extends Laya.Script {
|
||||
}
|
||||
|
||||
onStart(): void {
|
||||
|
||||
Laya.Tween.to(this.label, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.bounceIn, null, 0)
|
||||
|
||||
Laya.Tween.to(this.label, { y: -102 }, 300, Laya.Ease.linearOut, null, 500)
|
||||
|
||||
@@ -143,7 +143,6 @@ export class Stage extends Laya.Script {
|
||||
this.btn_hint_ad = this.btn_hint.getChildByName("Image").getChildByName("ad") as Laya.Box
|
||||
this.btn_hint_label = this.btn_hint.getChildByName("Image").getChildByName("normal").getChildByName("label") as Laya.Label
|
||||
|
||||
|
||||
// 失去舞台焦点(切出游戏)的处理
|
||||
Laya.stage.on(Laya.Event.BLUR, this, () => {
|
||||
Stage.EventUpdatePause(true)
|
||||
|
||||
Reference in New Issue
Block a user