你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
A
赞同来自: 1562299196用户
赞同来自:
1562299196用户
要回复问题请先登录
3 个回复
A
赞同来自: 1562299196用户
if (Browser.onMiniGame){
console.log(1);
tSound=Laya.loader.getRes(url);
}
if (!soundClass)soundClass=SoundManager._soundClass;
if (!tSound){
console.log(2);
tSound=new soundClass();
tSound.load(url);
if (Browser.onMiniGame){
Loader.cacheRes(url,tSound);
}
};
2个if判断去掉“!”号 就能播放声音了 请官方确认下 这样修改对不?
A
赞同来自:
看了这段 代码 自己修改成下图这样
1562299196用户
赞同来自: