调整初始化配置的位置
This commit is contained in:
@@ -71,6 +71,9 @@ export class PreloadUI extends Component {
|
||||
// 注册监听
|
||||
this.registerListener();
|
||||
|
||||
// 初始化配置
|
||||
ConfigManager.I.init();
|
||||
//console.log(ConfigManager.tables.TbGlobalConfig.GameName);
|
||||
// 初始化环境配置
|
||||
AppConfig.I;
|
||||
// 初始化数据层
|
||||
@@ -251,9 +254,11 @@ export class PreloadUI extends Component {
|
||||
// })
|
||||
// })
|
||||
|
||||
// 游客登录
|
||||
const deviceId = DeviceIdService.I.id;
|
||||
const reqData = {
|
||||
GameName: "123",
|
||||
Identifier: "abc",
|
||||
GameName: ConfigManager.tables.TbGlobalConfig.GameName,
|
||||
Identifier: deviceId,
|
||||
IdentityType: 1,
|
||||
OperateType: 1,
|
||||
ShareDeposit: "",
|
||||
@@ -299,9 +304,6 @@ export class PreloadUI extends Component {
|
||||
// //没登录成功,先进主界面,在主界面里进行登录
|
||||
// }
|
||||
|
||||
ConfigManager.I.init();
|
||||
//console.log(ConfigManager.tables.TbGlobalConfig.GameName);
|
||||
|
||||
ResManager.I.goMainScene(); //进入下一个场景
|
||||
// ResManager.I.goCustomScene("Test2DScene"); //进入自定义场景
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user