mirror of
https://gitee.com/dgflash/oops-framework.git
synced 2026-05-22 14:37:06 +08:00
修复音效配置数据出错时,音效模块报错问题
This commit is contained in:
@@ -8,7 +8,7 @@ oops-framework 基于 Cocos Creato 3.x 开发的一款游戏框架
|
||||
4. 框架提供游戏常用插件工具
|
||||
|
||||
注:
|
||||
1. [源库链接更新效率更高](https://gitee.com/dgflash/oops-framework)(好用记得给作者一个Star)
|
||||
1. [源库链接更新效率更高](https://gitee.com/dgflash/oops-framework),好用记得给作者一个Star,你们的支持就是我持续维护的动力。
|
||||
2. Cocos Creato 3.x 不同版的框架在源库分支中下载,master分支为最新引擎版本
|
||||
3. 学习交流 QQ 群:798575969
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "dee17c04-d12f-43b3-a76a-5af805417001",
|
||||
"uuid": "10b470dc-2622-4241-84ef-cf2163fa0e0d",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: dgflash
|
||||
* @Date: 2022-07-14 10:57:43
|
||||
* @LastEditors: dgflash
|
||||
* @LastEditTime: 2022-07-14 16:28:43
|
||||
* @LastEditTime: 2022-07-15 14:23:16
|
||||
*/
|
||||
import { _decorator } from 'cc';
|
||||
import { Root } from '../../../extensions/oops-framework/assets/core/Root';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: dgflash
|
||||
* @Date: 2021-07-03 16:13:17
|
||||
* @LastEditors: dgflash
|
||||
* @LastEditTime: 2022-07-13 14:55:08
|
||||
* @LastEditTime: 2022-07-15 17:02:40
|
||||
*/
|
||||
import { dynamicAtlasManager, macro, profiler, _decorator } from 'cc';
|
||||
import { DEBUG, JSB } from 'cc/env';
|
||||
@@ -25,7 +25,7 @@ export class Main extends CommonEnter {
|
||||
}
|
||||
|
||||
protected async run() {
|
||||
smc.initialize = ecs.getEntity<Initialize>(Initialize);
|
||||
smc.initialize = ecs.getEntity<Initialize>(Initialize);
|
||||
|
||||
if (JSB) {
|
||||
oops.gui.toast("热更新后新程序的提示");
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "15826589-066c-4a3b-b863-c408675f0692",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Date: 2021-08-12 09:33:37
|
||||
* @LastEditors: dgflash
|
||||
* @LastEditTime: 2022-06-14 18:42:43
|
||||
* @LastEditTime: 2022-07-15 17:18:53
|
||||
*/
|
||||
|
||||
import { LayerType, UIConfig } from "../../../../../extensions/oops-framework/assets/core/gui/layer/LayerManager";
|
||||
|
||||
@@ -157,8 +157,8 @@ export class AudioManager extends Component {
|
||||
this._switch_effect = true;
|
||||
}
|
||||
|
||||
this.music.volume = this._volume_music;
|
||||
this.effect.volume = this._volume_effect;
|
||||
if (this.music) this.music.volume = this._volume_music;
|
||||
if (this.effect) this.effect.volume = this._volume_effect;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user