接入登录、游戏逻辑

This commit is contained in:
janing
2025-12-14 23:35:24 +08:00
parent 3612ee74ea
commit d530b48e34
3 changed files with 53 additions and 46 deletions

View File

@@ -1,5 +1,7 @@
import { find } from "cc";
import { BaseState } from "../../Framework/FSM/BaseState";
import { NetManager } from "../../Framework/Net/NetManager";
import { UIMgr } from "../../Framework/UI/UIMgr";
/**
* 应用启动状态
@@ -23,6 +25,10 @@ export class AppStatusBoot extends BaseState {
console.log("[AppStatusBoot] 开始初始化应用...");
try {
// 初始化UI
console.log("[AppStatusBoot] 初始化UI管理器...");
UIMgr.getInstance().setUIRoot(find("Canvas")!);
// 1. 初始化并连接网络
await this.initAndConnectNet();