【音效】打开界面播放音效时不再播放点击音效

dev_chengFeng
gaoxin 2020-11-01 14:45:09 +08:00
parent 3479bd153c
commit a2bfc34833
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ function BasePanel:OpenUI(IsBackOpen, ...)
self:OnShow()
-- 判断是否要播放界面打开音效
if self.uiConfig.openAudio then
SoundManager.PlaySound(self.uiConfig.openAudio)
-- SoundManager.PlaySound(self.uiConfig.openAudio)
PlaySoundWithoutClick(self.uiConfig.openAudio)
end
end
Game.GlobalEvent:DispatchEvent(GameEvent.UI.OnOpen, self.uiConfig.id, self)