只有技能音效加速
parent
4daa2b7a39
commit
624781367b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue