2

我试图用持续时间将 SKAudioNode 的音量淡化为 0,但持续时间似乎没有影响,音频立即停止:

    let fireAudio = SoundManager.sharedInstance.fire //SKAudioNode
    let stopAudio = SKAction.stop()
    let fadeVolume = SKAction.changeVolumeTo(0.0, duration: 3.0)
    let remove = SKAction.removeFromParent()
    let sequence = SKAction.sequence([fadeVolume, stopAudio, remove])
    fireAudio?.runAction(sequence)

有什么建议吗?谢谢

4

0 回答 0