The ‘type’ attribute of ‘Game.scoreAudio’ must be child class of cc.Asset, otherwise you should use ‘url: cc.AudioClip’ instead
这个要怎么弄?播放音效
The ‘type’ attribute of ‘Game.scoreAudio’ must be child class of cc.Asset, otherwise you should use ‘url: cc.AudioClip’ instead
这个要怎么弄?播放音效
Game.scoreAudio这个类型配置成URL, 类似下面的调用。
var url = cc.url.raw(‘resources/bg.mp3’);
cc.audioEngine.play(url);