薛鸿潇 5 سال پیش
والد
کامیت
e83f36bb7c

+ 12 - 0
mk_framework/assets/script/game/module/main.meta

@@ -0,0 +1,12 @@
+{
+  "ver": "1.1.2",
+  "uuid": "845995d2-76bb-4b7a-bb41-4a3803506559",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 0 - 6
mk_framework/assets/script/game/module/main/MainUI.ts

@@ -14,7 +14,6 @@ export default class MainUI extends cc.Component {
 
     private initSystem(){
         //工具
-        this.time = new TimeUtil();
 
 
         //sdk
@@ -23,8 +22,3 @@ export default class MainUI extends cc.Component {
     }
 }
 
-declare global {
-    const mk: MKSystem;
-}
-window['mk'] = new MKSystem();
-

+ 9 - 0
mk_framework/assets/script/game/module/main/MainUI.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.8",
+  "uuid": "691fe835-df53-4382-8a08-bfe59ee3e0b0",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 1 - 1
mk_framework/assets/script/mk/system/LoaderSystem.ts

@@ -2,7 +2,7 @@
  * @description 资源加载
  * @author xhx
  */
-export default class LoaderSystem {sss
+export default class LoaderSystem {
     private _bundle = null;
     public setBundle(bundle) {
         bundle && (this._bundle = bundle);

+ 10 - 6
mk_framework/assets/script/mk/system/MKSystem.ts

@@ -1,4 +1,6 @@
+import FileUtil from "../utils/FileUtil";
 import TimeUtil from "../utils/TimeUtil";
+import LoaderSystem from "./LoaderSystem";
 
 
 const { ccclass, property } = cc._decorator;
@@ -10,21 +12,23 @@ export default class MKSystem extends cc.Component {
     })
     mainfestUrl: cc.Asset = null;
 
-    time:TimeUtil;
+    time: TimeUtil;
+    public loader: LoaderSystem;
+    public file: FileUtil;
 
     start() {
-        
+
         this.initSystem();
     }
 
-    private initSystem(){
+    private initSystem() {
         //工具
         this.time = new TimeUtil();
-
-
+        this.loader = new LoaderSystem();
+        this.file = new FileUtil();
         //sdk
 
-        
+
     }
 }