整理代码格式
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import type { DOStage } from "../models/DOStage"
|
||||
import { config } from "../constants/config"
|
||||
import { respath } from "../constants/respath"
|
||||
import { ResourceManager } from "../models/ResourceManager"
|
||||
import { StorageManager } from "../models/StorageManager"
|
||||
import { UIManager } from "../models/UIManager"
|
||||
import { Utility_ConvertSecondToString } from "../utils/utility"
|
||||
import { Difficulty } from "./Difficulty"
|
||||
import { ResourceManager } from "../models/ResourceManager"
|
||||
|
||||
const { regClass, property } = Laya
|
||||
|
||||
@@ -53,9 +53,8 @@ export class GameDone extends Laya.Script {
|
||||
public btn_continue: Laya.Box
|
||||
|
||||
onAwake(): void {
|
||||
|
||||
ResourceManager.getInstance().loadTexture(respath.bg_done, this.bg)
|
||||
|
||||
|
||||
this.owner.x = 0
|
||||
this.owner.y = 0
|
||||
|
||||
@@ -122,7 +121,7 @@ export class GameDone extends Laya.Script {
|
||||
UIManager.getInstance().loadStageUI(config.DEFAULT_STAGE_ID)
|
||||
this.owner.destroy()
|
||||
} else {
|
||||
ResourceManager.getInstance().loadPrefab(respath.difficulty_ui_res, (go: any)=> {
|
||||
ResourceManager.getInstance().loadPrefab(respath.difficulty_ui_res, (go: any) => {
|
||||
const prefab = go.create()
|
||||
const d = UIManager.getInstance().getUIRoot().addChild(prefab).getComponent(Difficulty)
|
||||
d.onInit((value: string) => {
|
||||
|
||||
Reference in New Issue
Block a user