神尊特权兑换上限修改
parent
298478e182
commit
a572de49a7
|
@ -64,7 +64,7 @@ function this:BindEvent()
|
|||
|
||||
Util.AddClick(this.addBtn,function ()
|
||||
local exNum=this.exchangeNum+1
|
||||
if exNum>maxExchangeNum then
|
||||
if exNum>maxExchangeNum or exNum>999 then
|
||||
PopupTipPanel.ShowTip("已达上限")
|
||||
return
|
||||
end
|
||||
|
@ -150,7 +150,7 @@ function this.OnUpdate()
|
|||
if _isClickedAdd then
|
||||
if Time.realtimeSinceStartup - this.timePressStarted > 0.4 then
|
||||
local exNum=this.exchangeNum+1
|
||||
if exNum>maxExchangeNum then
|
||||
if exNum>maxExchangeNum or exNum>999 then
|
||||
PopupTipPanel.ShowTip("已达上限")
|
||||
_isClickedAdd = false
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue