[]js预加载声音报错
Laya.loader.load(slot_sound_res, Laya.Loader.SOUND, Handler.create(this, onSoundProgress, null, false));
//游戏资源加载进度函数
function onSoundProgress(pro) {
console.log("sound" + pro);
} 这样写哪里错了?
//游戏资源加载进度函数
function onSoundProgress(pro) {
console.log("sound" + pro);
} 这样写哪里错了?
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
cuixueying
赞同来自:
Laya.loader.load(slot_sound_res,Handler.create(this,onSoundComplete),Handler.create(this,onSoundProgress),Laya.Loader.SOUND,null,flase)
写代码的时候注意下接口的参数类型
vincent
赞同来自: