除了中文其他语言不播音效

dev_chengFeng
jiaoyangna 2021-03-04 17:02:00 +08:00
parent 0991575155
commit 09870ee552
2 changed files with 2 additions and 2 deletions

View File

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

View File

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