Explorar o código

Merge branch 'master' of http://git.mokasz.com/zouyong/mk_framework

zouyong %!s(int64=5) %!d(string=hai) anos
pai
achega
24f42c2328

+ 7 - 5
assets/resources/game/prefab/game.prefab

@@ -46,8 +46,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 0,
-      "height": 0
+      "width": 750,
+      "height": 1334
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -384,7 +384,7 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        315,
+        302.032,
         0,
         0,
         0,
@@ -972,10 +972,12 @@
     },
     "_enabled": true,
     "alignMode": 1,
-    "_target": null,
+    "_target": {
+      "__id__": 1
+    },
     "_alignFlags": 32,
     "_left": 0,
-    "_right": 0,
+    "_right": 12.968000000000018,
     "_top": 0,
     "_bottom": 0,
     "_verticalCenter": 0,

+ 60 - 8
assets/resources/module/reward/RewardOpen.anim

@@ -1,9 +1,61 @@
-{
-  "__type__": "cc.AnimationClip",
-  "_name": "",
-  "_objFlags": 0,
-  "_duration": 0,
-  "sample": 60,
-  "curveData": {},
-  "events": []
+{
+  "__type__": "cc.AnimationClip",
+  "_name": "RewardOpen",
+  "_objFlags": 0,
+  "_native": "",
+  "_duration": 0.5833333333333334,
+  "sample": 60,
+  "speed": 1,
+  "wrapMode": 1,
+  "curveData": {
+    "props": {
+      "scale": [
+        {
+          "frame": 0,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 0,
+            "y": 0
+          }
+        },
+        {
+          "frame": 0.25,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1.1,
+            "y": 1.1
+          }
+        },
+        {
+          "frame": 0.3333333333333333,
+          "value": {
+            "__type__": "cc.Vec2",
+            "x": 1,
+            "y": 1
+          }
+        }
+      ]
+    },
+    "paths": {
+      "红包白纸": {
+        "props": {
+          "y": [
+            {
+              "frame": 0.3333333333333333,
+              "value": 200
+            },
+            {
+              "frame": 0.5,
+              "value": 520
+            },
+            {
+              "frame": 0.5833333333333334,
+              "value": 420
+            }
+          ]
+        }
+      }
+    }
+  },
+  "events": []
 }

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 270 - 305
assets/resources/module/reward/reward.prefab


+ 2 - 2
assets/scene/MainScene.fire

@@ -565,8 +565,8 @@
       "width": 750,
       "height": 1334
     },
-    "_fitWidth": false,
-    "_fitHeight": true,
+    "_fitWidth": true,
+    "_fitHeight": false,
     "_id": "59Cd0ovbdF4byw5sbjJDx7"
   },
   {

+ 1 - 1
assets/script/game/data/AdData.ts

@@ -76,5 +76,5 @@ export enum AdFun {
     settlement = 3,     //关卡结算视频
     turntable = 4,      //转盘视频
     sign = 5,           //签到视频
-    bigCash = 6,         //福袋视频
+    bigCash = 6,        //福袋视频
 }

+ 12 - 0
assets/script/game/data/GameData.ts

@@ -142,6 +142,7 @@ export enum GameProp {
     /** 当前能否签到 */
     sign_can = 121,
 }
+
 /**
  * 奖励状态
  */
@@ -152,4 +153,15 @@ export enum RewardState {
     lock = 2,
     /** 可领取 */
     unlock = 3
+}
+
+/**
+ * 音频路径
+ */
+export enum AUDIO_TYPE {
+    bgm = 'Background_music1',           //背景音乐
+    button = 'Button_click',            //按钮点击音效
+    turntableDraw = 'turntable1',           //转盘抽奖结束
+    turntableDrawEnd = 'turntable_2',           //转盘抽奖音效
+    getGold = 'Get_gold',       //获取金币音效
 }

+ 18 - 1
assets/script/game/data/module/RewardData.ts

@@ -5,6 +5,10 @@ import { Data } from "../../../mk/data/Data";
  * @author 邹勇 薛鸿潇
  */
 export class RewardData extends Data {
+    /** 
+     * 标志位 
+     * - 初始化红包封面样式
+    */
     public init_luck_style: boolean = false;
 
     /** 默认幸运红包 */
@@ -19,5 +23,18 @@ export class RewardData extends Data {
     }
 
     /** 奖励列表 */
-    data: any;
+    data: Array<DataType> = [];
+    /** 
+     * 标志位 
+     * - 初始化提现样式
+    */
+    public init_cash_style: boolean = true;
+}
+type DataType = {
+    /** 奖励类型 */
+    rewardType: number,
+    /** 奖励数量 */
+    rewardNum: number,
+    /** 玩家剩余数量 */
+    rewardTotal: number
 }

+ 0 - 247
assets/script/game/manager/AudioManager.ts

@@ -1,247 +0,0 @@
-/**
- * 音频模块
- * @author 薛鸿潇
- */
-export default class AudioManager {
-
-    /** 音乐开关 */
-    private _switchMusic: boolean = true;
-    /** 音效开关 */
-    private _switchEffect: boolean = true;
-    /** 音效音量 */
-    private _effectVolume: number = 1;
-    /** 音乐音量 */
-    private _musicVolume: number = 1;
-    /** 暂时音效开关 */
-    private _switchTempEffect: boolean = true;
-    /** 音频map */
-    private _map_audio: Map<AUDIO_NAME, cc.AudioClip> = new Map();
-
-    /** 初始化 */
-    public init() {
-        // 获取本地开关设置
-        let effect = cc.sys.localStorage.getItem("switchEffect");
-        if (effect) {
-            if (effect == "true") {
-                this._switchEffect = true;
-            } else {
-                this._switchEffect = false;
-            }
-        }
-
-        let music = cc.sys.localStorage.getItem("switchMusic");
-        if (music) {
-            if (music == "true") {
-                this._switchMusic = true;
-            } else {
-                this._switchMusic = false;
-            }
-        }
-
-        if (this._switchMusic) {
-            this.playMusic('bgm', true)
-        }
-    }
-
-    /**
-     * 播放音乐文件
-     * @param audio_name 音频名字
-     * @param loop 是否循环【默认循环】
-     */
-    public async playMusic(audio_name: AUDIO_NAME, loop: boolean = true) {
-        let asset = this._map_audio.get(audio_name);
-        if (!asset) {
-            asset = await mk.loader.load(AUDIO_PATH + audio_name, cc.AudioClip);
-            this._map_audio.set(audio_name, asset);
-        }
-        mk.audio.playMusic(asset, loop);
-    }
-
-    /**
-     * 播放音效文件
-     * @param audio_name 音频名字
-     * @param loop 是否循环【默认不循环】
-     */
-    public async playEffect(audio_name: AUDIO_NAME, loop: boolean = false) {
-        if (this._switchEffect && this._switchTempEffect) {
-            let asset = this._map_audio.get(audio_name);
-            if (!asset) {
-                asset = await mk.loader.load(AUDIO_PATH + audio_name, cc.AudioClip);
-                this._map_audio.set(audio_name, asset);
-            }
-            mk.audio.playEffect(asset, loop);
-        }
-    }
-
-    /**
-     * 停止播放音效
-     * @param audio_id 音频id
-     */
-    public stopEffect(audio_id: number) {
-        mk.audio.stopEffect(audio_id);
-    }
-
-    /**
-     * 转换音效开关
-     */
-    public switchEffectFunc() {
-        this._switchEffect = !this._switchEffect;
-        if (!this._switchEffect) {
-            this.setStopAllEffect();
-        }
-        cc.sys.localStorage.setItem("switchEffect", this._switchEffect.toString());
-    }
-
-    /**
-     * 获取音效开关状态
-     * @returns {boolean}
-     */
-    public getSwitchEffect(): boolean {
-        return this._switchEffect;
-    }
-
-    /**
-     * 设置音效声音大小
-     * value: 0.0 - 1.0
-     */
-    public setEffectVolume(value: number) {
-        this._effectVolume = value;
-        mk.audio.setEffectVolume(value);
-        cc.sys.localStorage.setItem("audio", JSON.stringify({ effect: this._effectVolume, music: this._musicVolume }));
-    }
-
-    /**
-     * 获取音效大小
-     * @return {number} 0.0 - 1.0
-     */
-    public getEffectVolume(): number {
-        return mk.audio.getEffectVolume();
-    }
-
-    /**
-     * 恢复当前说暂停的所有音效
-     */
-    public setResumeAllEffect() {
-        if (this._switchEffect) {
-            mk.audio.resumeAllEffects();
-        }
-    }
-
-    /**
-     * 停止播放所有正在播放的音效
-     */
-    public setStopAllEffect() {
-        mk.audio.stopAllEffects();
-    }
-
-    /** 暂时开启关闭音效开关
-     * @param state true  打开  false 关闭
-     */
-    public setTempEffect(state: boolean) {
-        this._switchTempEffect = state;
-    }
-
-    /**
-     * 转换音乐按钮开关
-     */
-    public switchMusicFunc() {
-        this._switchMusic = !this._switchMusic;
-        if (!this._switchMusic) {
-            this.stopMusic();
-        } else {
-            this.playMusic('bgm');
-        }
-        cc.sys.localStorage.setItem("switchMusic", this._switchMusic.toString());
-    }
-
-    /**
-     * 获取音乐开关状态
-     * @returns {boolean}
-     */
-    public getSwitchMusic() {
-        return this._switchMusic;
-    }
-
-    /**
-     * 暂停当前播放音乐
-     */
-    public setPauseMusic() {
-        mk.audio.pauseMusic();
-    }
-
-    /**
-     * 恢复当前被暂停音乐音乐
-     */
-    public setResumeMusic() {
-        if (this._switchMusic) {
-            mk.audio.resumeMusic();
-        }
-    }
-
-    /**
-     * 暂停所有 music
-     */
-    public stopMusic() {
-        mk.audio.stopMusic();
-    }
-
-    /**
-     * 设置music音量
-     * @param value 音量
-     */
-    public setMusicVolume(value: number) {
-        this._musicVolume = value;
-        mk.audio.setMusicVolume(value);
-        cc.sys.localStorage.setItem("audio", JSON.stringify({ effect: this._effectVolume, music: this._musicVolume }));
-    }
-
-    /**
-     * 获取当前music音量
-     * @returns {number} 音量
-     */
-    public getMusicVolume() {
-        return mk.audio.getMusicVolume();
-    }
-
-    /**
-     * 音乐是否正在播放(验证些方法来实现背景音乐是否播放完成)
-     * @returns {boolen}
-     */
-    public isMusicPlaying() {
-        return mk.audio.isMusicPlaying();
-    }
-
-    /**
-     * 释放指定音效资源
-     * @param audio 音频资源
-     */
-    public releaseAudio(audio: cc.AudioClip) {
-        if (!audio) {
-            cc.error("【音频】资源" + audio + "不存在, 释放失败")
-            return;
-        }
-        mk.audio.releaseAudio(audio);
-    }
-
-    /** 停止所有音效 */
-    public stopAllAudio() {
-        mk.audio.stopAllAudio();
-    }
-
-    /** 卸载所有音频 */
-    public releaseAllAudio() {
-        mk.audio.releaseAllAudio();
-    }
-}
-/** 音频路径 */
-const AUDIO_PATH = 'music/';
-/** 声音枚举 */
-enum AUDIO_TYPE {
-    bgm = 'Background_music1',           //背景音乐
-    button = 'Button_click',            //按钮点击音效
-    turntableDraw = 'turntable1',           //转盘抽奖结束
-    turntableDrawEnd = 'turntable_2',           //转盘抽奖音效
-    getGold = 'Get_gold',       //获取金币音效
-}
-/** 外部读取到的类型 */
-type AUDIO_NAME = keyof typeof AUDIO_TYPE;

+ 0 - 9
assets/script/game/manager/AudioManager.ts.meta

@@ -1,9 +0,0 @@
-{
-  "ver": "1.0.8",
-  "uuid": "23fb4f4f-fbcf-4147-8940-a4e141f50f3c",
-  "isPlugin": false,
-  "loadPluginInWeb": true,
-  "loadPluginInNative": true,
-  "loadPluginInEditor": false,
-  "subMetas": {}
-}

+ 97 - 6
assets/script/game/module/module/reward/Reward.ts

@@ -1,3 +1,4 @@
+import { AdFun } from "../../../data/AdData";
 
 const { ccclass, property } = cc._decorator;
 /**
@@ -7,14 +8,22 @@ const { ccclass, property } = cc._decorator;
 @ccclass
 export default class Reward extends cc.Component {
 
-    @property({ displayName: '领取按钮', type: cc.Button })
-    private btn_receive: cc.Button = null;
-
     @property({ displayName: '幸运红包', type: cc.Node })
     private node_luck: cc.Node = null;
     @property({ displayName: '通关红包', type: cc.Node })
     private node_mission: cc.Node = null;
+    @property({ displayName: '开红包动画', type: cc.Animation })
+    private anim_open_redbag: cc.Animation = null;
+    @property({ displayName: '按钮看视频', type: cc.Button })
+    private btn_watch_video: cc.Button = null;
+    @property({ displayName: '红包图标', type: cc.Node })
+    private node_redBag: cc.Node = null;
+    @property({ displayName: '金猪图标', type: cc.Node })
+    private node_pig: cc.Node = null;
+    @property({ displayName: '奖励数量', type: cc.Label })
+    private lbl_reward_value: cc.Label = null;
 
+    // 底部提现相关
     @property({ displayName: 'spr提现进度', type: cc.Sprite })
     private spr_cash_out: cc.Sprite = null;
     @property({ displayName: 'lbl提现进度', type: cc.Label })
@@ -22,8 +31,19 @@ export default class Reward extends cc.Component {
     @property({ displayName: '提现金额', type: cc.Label })
     private lbl_cash: cc.Label = null;
 
-    onLoad() {
 
+
+    onLoad() {
+        this.lbl_reward_value.string = '0';
+        // 测试数据
+        gData.reward.data.push({
+            /** 奖励类型 */
+            rewardType: 1,
+            /** 奖励数量 */
+            rewardNum: 100,
+            /** 玩家剩余数量 */
+            rewardTotal: 0
+        })
     }
 
     start() {
@@ -33,11 +53,23 @@ export default class Reward extends cc.Component {
 
     update(dt) {
         if (gData.reward.init_luck_style) {
-            gData.reward.init_luck_style = false;
+            gData.reward.init_luck_style = null;
             this.initLid();
+            return;
+        }
+        if (gData.reward.init_cash_style) {
+            gData.reward.init_cash_style = null;
+            this.initCashOutStyle();
+            return;
+        }
+        if (gData.reward.adData) {
+            // 展示奖励
+            this.watchVideoCall();
+            gData.reward.adData = null;
+            return;
         }
     }
-    
+
     /**
      * 初始化封面样式
      */
@@ -52,6 +84,65 @@ export default class Reward extends cc.Component {
     }
 
     /**
+     * 底部提现相关样式
+     */
+    private initCashOutStyle() {
+        // 测试数据
+        this.lbl_cash.string = 0.0 + '元';
+        this.lbl_cash_out.string = 0 + '/' + 100;
+        this.spr_cash_out.fillRange = 0.8;
+    }
+
+    /**
+     * 看广告
+     */
+    private clickWatchVideo() {
+        cc.log('看广告请求');
+        if (gData.reward.data[0].rewardType === 1) {
+            gData.adData.watchVideo(AdFun.settlement)// 关卡结算视频
+        } else {
+            gData.adData.watchVideo(AdFun.bubble);// 气泡视频
+        }
+        // 测试数据
+        gData.reward.adData = gData.reward.data;
+    }
+
+    /**
+     * 看广告回调:开奖
+     */
+    private watchVideoCall() {
+        gData.reward.data = gData.reward.adData;
+        // 数据排序:多条奖励,只展示红包,把红包放在首位
+        const r_count = gData.reward.adData.length;
+        if (r_count >= 2) {
+            for (let i = 0; i < r_count; i++) {
+                if (gData.reward.adData[i].rewardType === 1) {
+                    let new_data = gData.reward.adData.splice(i, 1);
+                    gData.reward.adData.unshift(new_data);
+                    break;
+                }
+            }
+        }
+
+        // 图标展示
+        if (gData.reward.data[0].rewardType === 1) {
+            this.node_redBag.active = true;
+            this.node_pig.active = false;
+        } else {
+            this.node_redBag.active = false;
+            this.node_pig.active = true;
+        }
+        let rewardNum = gData.reward.data[0].rewardNum || 0;
+        this.lbl_reward_value.string = `${rewardNum}`;
+
+        // 动画
+        this.anim_open_redbag.play();
+        this.node_luck.active = false;
+        this.node_mission.active = false;
+        this.btn_watch_video.node.active = false;
+    }
+
+    /**
      * 获得奖励
      */
     private clickGetReward() {

+ 145 - 39
assets/script/mk/system/AudioSystem.ts

@@ -1,99 +1,205 @@
+import { AUDIO_TYPE } from "../../game/data/GameData";
+
 /**
  * 音频模块
  * @author 薛鸿潇
  */
 export default class AudioSystem {
 
+    /** 音乐开关 */
+    private _switchMusic: boolean = true;
+    /** 音效开关 */
+    private _switchEffect: boolean = true;
+    /** 音效音量 */
+    private _effectVolume: number = 1;
+    /** 音乐音量 */
+    private _musicVolume: number = 1;
+    /** 暂时音效开关 */
+    private _switchTempEffect: boolean = true;
+    /** 音频map */
+    private _map_audio: Map<AUDIO_NAME, cc.AudioClip> = new Map();
+
+    /** 初始化 */
+    public init() {
+        // 获取本地开关设置
+        let effect = cc.sys.localStorage.getItem("switchEffect");
+        if (effect) {
+            if (effect == "true") {
+                this._switchEffect = true;
+            } else {
+                this._switchEffect = false;
+            }
+        }
+
+        let music = cc.sys.localStorage.getItem("switchMusic");
+        if (music) {
+            if (music == "true") {
+                this._switchMusic = true;
+            } else {
+                this._switchMusic = false;
+            }
+        }
+
+        if (this._switchMusic) {
+            this.playMusic('bgm', true)
+        }
+    }
+
     /**
-     * 背景音乐播放
-     * @param clip 音频资源
-     * @param loop 循环
-     * @returns audio_id
+     * 播放音乐文件
+     * @param audio_name 音频名字
+     * @param loop 是否循环【默认循环】
      */
-    public playMusic(clip: cc.AudioClip, loop: boolean = false): number {
-        return cc.audioEngine.playMusic(clip, loop);
+    public async playMusic(audio_name: AUDIO_NAME, loop: boolean = true) {
+        let asset = this._map_audio.get(audio_name);
+        if (!asset) {
+            asset = await mk.loader.load(AUDIO_PATH + audio_name, cc.AudioClip);
+            this._map_audio.set(audio_name, asset);
+        }
+        cc.audioEngine.playMusic(asset, loop);
     }
 
     /**
      * 播放音效文件
-     * @param clip 
-     * @param loop 
-     * @returns audio_id
-     */
-    public playEffect(clip: cc.AudioClip, loop = false): number {
-        return cc.audioEngine.playEffect(clip, loop);
+     * @param audio_name 音频名字
+     * @param loop 是否循环【默认不循环】
+     */
+    public async playEffect(audio_name: AUDIO_NAME, loop: boolean = false) {
+        if (this._switchEffect && this._switchTempEffect) {
+            let asset = this._map_audio.get(audio_name);
+            if (!asset) {
+                asset = await mk.loader.load(AUDIO_PATH + audio_name, cc.AudioClip);
+                this._map_audio.set(audio_name, asset);
+            }
+            cc.audioEngine.playEffect(asset, loop);
+        }
     }
 
     /**
      * 停止播放音效
-     * @param audio_id 
+     * @param audio_id 音频id
      */
-    public stopEffect(audio_id: number): void {
+    public stopEffect(audio_id: number) {
         cc.audioEngine.stopEffect(audio_id);
     }
 
     /**
+     * 转换音效开关
+     */
+    public switchEffectFunc() {
+        this._switchEffect = !this._switchEffect;
+        if (!this._switchEffect) {
+            this.setStopAllEffect();
+        }
+        cc.sys.localStorage.setItem("switchEffect", this._switchEffect.toString());
+    }
+
+    /**
+     * 获取音效开关状态
+     * @returns {boolean}
+     */
+    public getSwitchEffect(): boolean {
+        return this._switchEffect;
+    }
+
+    /**
      * 设置音效声音大小
-     * @param value 
+     * value: 0.0 - 1.0
      */
-    public setEffectVolume(value: number): void {
+    public setEffectVolume(value: number) {
+        this._effectVolume = value;
         cc.audioEngine.setEffectsVolume(value);
+        cc.sys.localStorage.setItem("audio", JSON.stringify({ effect: this._effectVolume, music: this._musicVolume }));
     }
 
     /**
      * 获取音效大小
-     * @return 0.0 - 1.0
+     * @return {number} 0.0 - 1.0
      */
     public getEffectVolume(): number {
         return cc.audioEngine.getEffectsVolume();
     }
 
     /**
+     * 恢复当前说暂停的所有音效
+     */
+    public setResumeAllEffect() {
+        if (this._switchEffect) {
+            cc.audioEngine.resumeAllEffects();
+        }
+    }
+
+    /**
      * 停止播放所有正在播放的音效
      */
-    public stopAllEffects() {
+    public setStopAllEffect() {
         cc.audioEngine.stopAllEffects();
     }
 
+    /** 暂时开启关闭音效开关
+     * @param state true  打开  false 关闭
+     */
+    public setTempEffect(state: boolean) {
+        this._switchTempEffect = state;
+    }
+
     /**
-     * 暂停当前播放音乐
+     * 转换音乐按钮开关
      */
-    public pauseMusic() {
-        cc.audioEngine.pauseMusic();
+    public switchMusicFunc() {
+        this._switchMusic = !this._switchMusic;
+        if (!this._switchMusic) {
+            this.stopMusic();
+        } else {
+            this.playMusic('bgm');
+        }
+        cc.sys.localStorage.setItem("switchMusic", this._switchMusic.toString());
     }
 
     /**
-     * 恢复当前说暂停的所有音效
+     * 获取音乐开关状态
+     * @returns {boolean}
      */
-    public resumeAllEffects() {
-        cc.audioEngine.resumeAllEffects();
+    public getSwitchMusic() {
+        return this._switchMusic;
+    }
+
+    /**
+     * 暂停当前播放音乐
+     */
+    public setPauseMusic() {
+        cc.audioEngine.pauseMusic();
     }
 
     /**
      * 恢复当前被暂停音乐音乐
      */
-    public resumeMusic() {
-        cc.audioEngine.resumeMusic();
+    public setResumeMusic() {
+        if (this._switchMusic) {
+            cc.audioEngine.resumeMusic();
+        }
     }
 
     /**
-     * 暂停播放音乐
+     * 暂停所有 music
      */
     public stopMusic() {
         cc.audioEngine.stopMusic();
     }
 
     /**
-     * 设置音乐音量
-     * @param value 0~1音量
+     * 设置music音量
+     * @param value 音量
      */
     public setMusicVolume(value: number) {
+        this._musicVolume = value;
         cc.audioEngine.setMusicVolume(value);
+        cc.sys.localStorage.setItem("audio", JSON.stringify({ effect: this._effectVolume, music: this._musicVolume }));
     }
 
     /**
-     * 获取音乐音量
-     * @returns {number}
+     * 获取当前music音量
+     * @returns {number} 音量
      */
     public getMusicVolume() {
         return cc.audioEngine.getMusicVolume();
@@ -101,7 +207,7 @@ export default class AudioSystem {
 
     /**
      * 音乐是否正在播放(验证些方法来实现背景音乐是否播放完成)
-     * @returns {boolean}
+     * @returns {boolen}
      */
     public isMusicPlaying() {
         return cc.audioEngine.isMusicPlaying();
@@ -119,17 +225,17 @@ export default class AudioSystem {
         cc.audioEngine.uncache(audio);
     }
 
-    /**
-     * 停止所有音频
-     */
+    /** 停止所有音效 */
     public stopAllAudio() {
         cc.audioEngine.stopAll();
     }
 
-    /**
-     * 释放所有音频
-     */
+    /** 卸载所有音频 */
     public releaseAllAudio() {
         cc.audioEngine.uncacheAll();
     }
-}
+}
+/** 音频路径 */
+const AUDIO_PATH = 'music/';
+/** 外部读取到的类型 */
+type AUDIO_NAME = keyof typeof AUDIO_TYPE;

+ 1 - 1
assets/script/mk/system/AudioSystem.ts.meta

@@ -1,6 +1,6 @@
 {
   "ver": "1.0.8",
-  "uuid": "1506c7e8-e3ee-4092-83cc-a17f3a7c051d",
+  "uuid": "23fb4f4f-fbcf-4147-8940-a4e141f50f3c",
   "isPlugin": false,
   "loadPluginInWeb": true,
   "loadPluginInNative": true,

+ 1 - 1
assets/script/mk/system/MKSystem.ts

@@ -1,7 +1,6 @@
 import BuglySDK from "../sdk/BuglySDK";
 import FileUtil from "../utils/FileUtil";
 import TimeUtil from "../utils/TimeUtil";
-import AudioSystem from "./AudioSystem";
 import DataSystem from "./DataSystem";
 import HttpSystem from "./HttpSystem";
 import LoadResUtil from "../utils/LoadResUtil";
@@ -16,6 +15,7 @@ import MathUtil from "../utils/MathUtil";
 import AdSystem from "./AdSystem";
 import JsbSystem from "./JsbSystem";
 import ATSDKMgr from "../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr";
+import AudioSystem from "./AudioSystem";
 
 /**
  * @description mk系统

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio