只有技能音效加速

dev_chengFeng
gaoxin 2020-08-27 17:07:59 +08:00
parent 4daa2b7a39
commit 624781367b
1 changed files with 1 additions and 2 deletions

View File

@ -232,7 +232,7 @@ local function _SetAudioUnit(audioUnit, resName, auildType, volume)
local pitch = 1
if auildType == eAudioType.uiAudio then
if config and config.mixType ~= SoundDef[11] then
if config and config.mixType == SoundDef[4] then
if UIManager.IsOpen(UIName.BattlePanel) then
local scale = BattleManager.GetTimeScale()
pitch = math.floor(scale + 0.5)
@ -240,7 +240,6 @@ local function _SetAudioUnit(audioUnit, resName, auildType, volume)
end
end
Log("音效播放速度:"..pitch)
-- 播放新音效
if not config or config.mixType == SoundDef[1] or config.mixType == SoundDef[2] or isLoop then
audioUnit.audio.clip = clipNew