future 1 жил өмнө
parent
commit
d07cea2de3

+ 6 - 6
assets/script/edit/edit_scene.ts

@@ -77,12 +77,12 @@ export class edit_scene extends Component {
             if(curScene.is_child_scene){
                 return tools.showToast("子场景不可以运行")
             }
-            // tools.game_run()
-            tools.show_loading(()=>{
-                tools.game_run(()=>{
-                    tools.hide_loading()
-                })
-            })
+            tools.game_run()
+            // tools.show_loading(()=>{
+            //     tools.game_run(()=>{
+            //         tools.hide_loading()
+            //     })
+            // })
         })
         this.btn_run_all.on(Node.EventType.TOUCH_END,()=>{
             tools.game_run_all()

+ 1 - 1
assets/script/run/gameManager.ts

@@ -294,7 +294,7 @@ export class gameManager extends Component {
 
     public startLevelGame(callback=null){
         this.initEvent()
-        callback()
+        // callback()
         console.log("this.mGameData",this.mGameData,this.mCurSceneIndex)
         this.mSceneManager.startLevelGame(this.mGameData[this.mCurSceneIndex])
         taskServce.initTask(this.mGameData[this.mCurSceneIndex]._task_data)