格式化代码 var to let or const
This commit is contained in:
@@ -32,12 +32,12 @@ export class GamePause extends Laya.Script {
|
||||
this.label_diffucuty.text = doStage.get_difficulty()
|
||||
|
||||
EventManager.getInstance().DispatchEvent(EVENT_TYPES.NOT_UPDATE_PAUSE, true)
|
||||
this.btn_continue.on(Laya.Event.CLICK, this, (evt: Laya.Event) => {
|
||||
this.btn_continue.on(Laya.Event.CLICK, this, () => {
|
||||
EventManager.getInstance().DispatchEvent(EVENT_TYPES.NOT_UPDATE_PAUSE, false)
|
||||
this.owner.destroy()
|
||||
})
|
||||
|
||||
this.btn_restart.on(Laya.Event.CLICK, this, (evt: Laya.Event) => {
|
||||
this.btn_restart.on(Laya.Event.CLICK, this, () => {
|
||||
const stageID = doStage.get_stageID()
|
||||
const type = doStage.get_stageType()
|
||||
const difficulty = doStage.get_difficulty()
|
||||
|
||||
Reference in New Issue
Block a user