game pause
This commit is contained in:
@@ -5,7 +5,6 @@ import { DailyChallenge } from "../views/DailyChallenge"
|
||||
import { TrophyRecord } from "../types/global"
|
||||
import { TrophyClaim } from "../views/TrophyClaim"
|
||||
import { TrophyShow } from "../views/TrophyShow"
|
||||
import { config } from "../constants/config"
|
||||
|
||||
|
||||
const { regClass, property } = Laya
|
||||
@@ -91,6 +90,12 @@ export class UIManager extends Laya.Script {
|
||||
}
|
||||
}
|
||||
|
||||
public loadGamePauseUI(): void {
|
||||
Laya.loader.load(respath.gamepause_ui_res).then((go)=>{
|
||||
var prefab = go.create()
|
||||
this.getUIRoot().addChild(prefab)
|
||||
})
|
||||
}
|
||||
public loadGameOverUI(): void {
|
||||
Laya.loader.load(respath.gameover_ui_res).then((go)=>{
|
||||
var prefab = go.create()
|
||||
|
||||
Reference in New Issue
Block a user