future 1 year ago
parent
commit
6df10a55f8
3 changed files with 3 additions and 3 deletions
  1. 1 1
      assets/script/config.ts
  2. 2 0
      assets/script/main.ts
  3. 0 2
      assets/script/run/game_run.ts

+ 1 - 1
assets/script/config.ts

@@ -3,7 +3,7 @@ import { scene_item_data, widget_item_data } from '../data/data';
 const { ccclass, property } = _decorator;
 
 export class config {
-    static debug = true;
+    static debug = false;
     static gameName = "神秘的笔记";
     static select_res_and_control_type = {
         RES_TYPE:0,

+ 2 - 0
assets/script/main.ts

@@ -1,11 +1,13 @@
 import { _decorator, Component, Node } from 'cc';
 import { game_run } from './run/game_run';
+import { SdkUtil } from './sdkUtil';
 const { ccclass, property } = _decorator;
 
 @ccclass('main')
 export class main extends Component {
     @property(game_run) g_game:game_run = null;
     protected start(): void {
+        SdkUtil.init()
         this.g_game.runAll()
     }
 }

+ 0 - 2
assets/script/run/game_run.ts

@@ -10,7 +10,6 @@ import { login_view } from './login_view/login_view';
 import { game_list } from './game_list_view/game_list';
 import { check_open } from './check_open';
 import { unLock_view } from './unLock_view/unLock_view';
-import { SdkUtil } from '../sdkUtil';
 import { game_health_view } from './game_health_view/game_health_view';
 const { ccclass, property } = _decorator;
 
@@ -32,7 +31,6 @@ export class game_run extends Component {
     @property(gameManager) mGameManger:gameManager = null;
 
     protected start(): void {
-        SdkUtil.init()
         this.btn_close.on(Node.EventType.TOUCH_END,()=>{
             this.close()
         })