feat: 提交资源
This commit is contained in:
19
assets/hall/scripts/GameEntry.ts
Normal file
19
assets/hall/scripts/GameEntry.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
/* eslint-disable no-console */
|
||||
import { _decorator, Component, profiler } 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";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass("GameEntry")
|
||||
export class GameEntry extends Component {
|
||||
protected async onLoad() {
|
||||
await ResManager.getInstance().loadLocalBundle("games");
|
||||
await SingletonRegistry.initializeAutoInstances();
|
||||
void UIManager.getInstance().openUI("MainUI");
|
||||
}
|
||||
|
||||
update(deltaTime: number) {}
|
||||
}
|
||||
Reference in New Issue
Block a user