|
|
@@ -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();
|
|
|
+
|