点击音效
This commit is contained in:
parent
f63a2bf876
commit
83a22c48b8
@ -55,6 +55,7 @@ function HeroListCell:refresh(index, heroList, stageFormation, allHeroCount, act
|
||||
self.heroCells[i]:refresh(heroEntity, not heroEntity:isActived())
|
||||
self.heroCells[i]:showCheck(stageFormation[matchType] == heroId)
|
||||
self.heroCells[i]:addClickListener(function()
|
||||
AudioManager:playEffect(AudioManager.CLICK_ID[GConst.CLICK_SOUND.NORMAL])
|
||||
if func then
|
||||
func(self.heroCells[i], heroId)
|
||||
end
|
||||
@ -68,6 +69,7 @@ function HeroListCell:refresh(index, heroList, stageFormation, allHeroCount, act
|
||||
self.heroCells[i]:setVisible(true)
|
||||
self.heroCells[i]:refresh(heroEntity, true)
|
||||
self.heroCells[i]:addClickListener(function()
|
||||
AudioManager:playEffect(AudioManager.CLICK_ID[GConst.CLICK_SOUND.NORMAL])
|
||||
if func then
|
||||
func(self.heroCells[i], heroId)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user