【升级】长按升到最大级了,会无法触发抬起事件,导致升级失败
parent
60df01190d
commit
35648e8762
|
@ -667,6 +667,10 @@ function this:UpdateHeroUpLvAndBreakMaterialShow()
|
|||
if curHeroData.lv>=HeroManager.heroLvEnd[curHeroData.heroConfig.Id] then
|
||||
this.noUpLvText:SetActive(true)
|
||||
this.upLv:SetActive(false)
|
||||
-- 长按升到最大级了,会无法触发抬起事件,主动调用一下
|
||||
if _isLongPress then
|
||||
this._onPointerUp()
|
||||
end
|
||||
else
|
||||
this.noUpLvText:SetActive(false)
|
||||
this.upLv:SetActive(true)
|
||||
|
|
Loading…
Reference in New Issue