zouyong 5 лет назад
Родитель
Сommit
39c7288437

+ 2 - 2
mk_framework/assets/scene/MainScene.fire

@@ -275,7 +275,7 @@
     "_id": "29zXboiXFBKoIV4PQ2liTe"
   },
   {
-    "__type__": "4ec4ePvrN1EYKoxUo6gei22",
+    "__type__": "f0038hKHC9Nf5+ipaUV9rc5",
     "_name": "",
     "_objFlags": 0,
     "node": {
@@ -283,6 +283,6 @@
     },
     "_enabled": true,
     "mainfestUrl": null,
-    "_id": "c2QmGuUxJHcoTQn1lSKaNK"
+    "_id": "c4ULP9xvJHFrQ1rqZQ7y7B"
   }
 ]

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

@@ -0,0 +1,35 @@
+import TimeUtil from "../utils/TimeUtil";
+
+
+const { ccclass, property } = cc._decorator;
+
+@ccclass
+export default class MKSystem extends cc.Component {
+    @property({
+        type: cc.Asset,
+    })
+    mainfestUrl: cc.Asset = null;
+
+    time:TimeUtil;
+
+    start() {
+        
+        this.initSystem();
+    }
+
+    private initSystem(){
+        //工具
+        this.time = new TimeUtil();
+
+
+        //sdk
+
+        
+    }
+}
+
+declare global {
+    const mk: MKSystem;
+}
+window['mk'] = new MKSystem();
+

+ 1 - 1
mk_framework/assets/script/mk/system/Main.ts.meta → mk_framework/assets/script/mk/system/MKSystem.ts.meta

@@ -1,6 +1,6 @@
 {
   "ver": "1.0.8",
-  "uuid": "4ec4e3ef-acdd-4460-aa31-528ea07a2db6",
+  "uuid": "f003884a-1c2f-4d7f-9fa2-a5a515f6b739",
   "isPlugin": false,
   "loadPluginInWeb": true,
   "loadPluginInNative": true,

+ 0 - 16
mk_framework/assets/script/mk/system/Main.ts

@@ -1,16 +0,0 @@
-
-
-const { ccclass, property } = cc._decorator;
-
-@ccclass
-export default class Main extends cc.Component {
-    @property({
-        type: cc.Asset,
-    })
-    mainfestUrl: cc.Asset = null;
-
-    start() {
-        console.log("init");
-        
-    }
-}

+ 7 - 0
mk_framework/assets/script/mk/utils/TimeUtil.ts

@@ -0,0 +1,7 @@
+
+export default class TimeUtil {
+    constructor() {
+        
+    }
+
+}

+ 9 - 0
mk_framework/assets/script/mk/utils/TimeUtil.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.0.8",
+  "uuid": "c10ef25f-80f9-4846-aa36-2110118b8abd",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}