dgflash 3 years ago
parent
commit
5f607af796
2 changed files with 6 additions and 9 deletions
  1. 2 2
      assets/main.scene
  2. 4 7
      assets/script/game/initialize/view/LoadingViewComp.ts

+ 2 - 2
assets/main.scene

@@ -146,7 +146,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 600,
-      "y": 359.99999999999994,
+      "y": 360,
       "z": 0
     },
     "_lrot": {
@@ -227,7 +227,7 @@
     "_priority": 1073741824,
     "_fov": 45,
     "_fovAxis": 0,
-    "_orthoHeight": 391.4405010438413,
+    "_orthoHeight": 411.635565312843,
     "_near": 1,
     "_far": 2000,
     "_color": {

+ 4 - 7
assets/script/game/initialize/view/LoadingViewComp.ts

@@ -2,7 +2,7 @@
  * @Author: dgflash
  * @Date: 2021-07-03 16:13:17
  * @LastEditors: dgflash
- * @LastEditTime: 2022-08-08 11:42:32
+ * @LastEditTime: 2022-08-10 18:07:35
  */
 import { _decorator } from "cc";
 import { resLoader } from "../../../../../extensions/oops-plugin-framework/assets/core/common/loader/ResLoader";
@@ -35,11 +35,11 @@ export class LoadingViewComp extends CCVMParentComp {
         // 获取用户信息的多语言提示文本
         this.data.prompt = oops.language.getLangByID("loading_load_player");
 
+        // 进入自定义游戏内容界面
+        oops.gui.open(UIID.Demo);
+
         // 关闭加载界面
         oops.gui.remove(UIID.Loading);
-
-        // 打开游戏主界面(自定义逻辑)
-        oops.gui.open(UIID.Demo);
     }
 
     start() {
@@ -86,8 +86,5 @@ export class LoadingViewComp extends CCVMParentComp {
     /** 加载完成事件 */
     private onCompleteCallback() {
         this.ent.remove(LoadingViewComp);
-
-        // 进入自定义游戏内容界面
-        oops.gui.open(UIID.Demo);
     }
 }