20 lines
629 B
TypeScript
20 lines
629 B
TypeScript
/* 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) {}
|
|
}
|