Explorar o código

[FC]: 在MKSystem初始化LogUtil和LoadResUtil

fengcong %!s(int64=5) %!d(string=hai) anos
pai
achega
e5c92a8ea2
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      mk_framework/assets/script/mk/system/MKSystem.ts

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

@@ -5,6 +5,8 @@ import AudioSystem from "./AudioSystem";
 import DataSystem from "./DataSystem";
 import HttpSystem from "./HttpSystem";
 import LoaderSystem from "../utils/LoadResUtil";
+import LogUtil from "../utils/LogUtil";
+import LoadResUtil from "../utils/LoadResUtil";
 
 
 class MKSystem {
@@ -15,6 +17,8 @@ class MKSystem {
     /** 工具 */
     time: TimeUtil;
     file: FileUtil;
+    log:LogUtil;
+    loadRes:LoadResUtil;
 
     /** SDK */
     bugly:BuglySDK;
@@ -30,6 +34,8 @@ class MKSystem {
         //工具
         this.time = new TimeUtil();
         this.file = new FileUtil();
+        this.log = new LogUtil();
+        this.loadRes = new LoadResUtil();
 
         //sdk
         this.bugly = new BuglySDK();