fix: 更新提交
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
/* eslint-disable no-console */
|
||||
import { _decorator, Component, profiler } from "cc";
|
||||
import { _decorator, Component } from "cc";
|
||||
|
||||
import { SingletonRegistry } from "@max-studio/core/Singleton";
|
||||
import UIManager from "@max-studio/core/ui/UIManager";
|
||||
import { ResManager } from "@max-studio/core/res/ResManager";
|
||||
import LogUtils from "@max-studio/core/utils/LogUtils";
|
||||
// import { ResManager } from "@max-studio/core/res/ResManager";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass("GameEntry")
|
||||
export class GameEntry extends Component {
|
||||
protected async onLoad() {
|
||||
await ResManager.getInstance().loadLocalBundle("games");
|
||||
// await ResManager.getInstance().loadLocalBundle("games");
|
||||
LogUtils.log("GameEntry onLoad");
|
||||
await SingletonRegistry.initializeAutoInstances();
|
||||
void UIManager.getInstance().openUI("MainUI");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user