zhangjiannan 2025-02-27 16:39:51 +08:00
parent b22e7d30ec
commit 10db76d1dc
2 changed files with 3 additions and 2 deletions

View File

@ -129,7 +129,7 @@ function SkillCaster:PlaySkillCastingEffect(combat, skill, func)
end
-- 技能名音效
if IS_PLAY_VOICE and combat.SkillNameVoice and GetCurLanguage() == 0 then
if IS_PLAY_VOICE and combat.SkillNameVoice then
SoundManager.PlaySound(combat.SkillNameVoice)
end

View File

@ -603,7 +603,8 @@ function this.ShowGuide(id)
str = string.gsub(str, "}", "</color>")
this.desc.text = str
end
if IS_PLAY_VOICE and GuideConfig[id].Audio and GuideConfig[id].Audio ~= "" and GetCurLanguage() == 0 then
if IS_PLAY_VOICE and GuideConfig[id].Audio and GuideConfig[id].Audio ~= "" then
LogError("###################"..GuideConfig[id].Audio)
audio = SoundManager.PlaySound(GuideConfig[id].Audio)
end
PlayUIAnim(this.tipButtomRoot)