特权收益代码提交

yuanshuai 2022-09-13 10:51:48 +08:00
parent 23416c35cf
commit c2c05f391c
2 changed files with 8 additions and 4 deletions

View File

@ -58,27 +58,27 @@ function this:BindEvent()
end
end)
--减号长按升级按下状态
--减号长按按下状态
this._onPointerDownReduce = function(Pointgo, data)
LogRed("减号长按按下状态")
_isClickedReduce = true
this.timePressStarted = Time.realtimeSinceStartup
end
--减号长按升级抬起状态
--减号长按抬起状态
this._onPointerUpReduce = function(Pointgo, data)
LogRed("减号长按抬起状态")
_isClickedReduce = false
end
--加号长按升级按下状态
--加号长按按下状态
this._onPointerDownAdd = function(Pointgo, data)
LogRed("加号长按按下状态")
_isClickedAdd = true
this.timePressStarted = Time.realtimeSinceStartup
end
--加号长按升级抬起状态
--加号长按抬起状态
this._onPointerUpAdd = function(Pointgo, data)
LogRed("加号长按抬起状态")
_isClickedAdd = false

View File

@ -98,6 +98,10 @@ local function _CompareCondition(type, condition, value)
return value >= condition
elseif type==8 then --开启周卡解锁
return MonthCardManager.GetMonthCardIsOpen(MONTH_CARD_TYPE.MONTHCARD)
elseif type==9 then --神尊等级解锁
return GetShenzunLv() >= condition
else
return false
end
end