mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
无头模式测试
This commit is contained in:
@@ -6,6 +6,7 @@ import NoviceManager from "../../manager/NoviceManager";
|
||||
import { JNGLayerBase } from "../../components/JNComponent";
|
||||
import { app } from "../../App";
|
||||
import { lerp } from "cc";
|
||||
import { Env, EnvCurrent } from "../../Env";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('LoadingView')
|
||||
@@ -35,7 +36,12 @@ export default class LoadingView extends JNGLayerBase {
|
||||
await NoviceManager.getIns().onStart();
|
||||
|
||||
//关闭加载页
|
||||
await app.layer.Open(GUI.Main);
|
||||
if(EnvCurrent == Env.Server){
|
||||
//打开服务器主页
|
||||
await app.layer.Open(GUI.ServerMain);
|
||||
}else{
|
||||
await app.layer.Open(GUI.Main);
|
||||
}
|
||||
app.layer.Close(GUI.Loading);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user