特权收益代码提交
parent
23416c35cf
commit
c2c05f391c
|
@ -58,27 +58,27 @@ function this:BindEvent()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
--减号长按升级按下状态
|
--减号长按按下状态
|
||||||
this._onPointerDownReduce = function(Pointgo, data)
|
this._onPointerDownReduce = function(Pointgo, data)
|
||||||
LogRed("减号长按按下状态")
|
LogRed("减号长按按下状态")
|
||||||
_isClickedReduce = true
|
_isClickedReduce = true
|
||||||
this.timePressStarted = Time.realtimeSinceStartup
|
this.timePressStarted = Time.realtimeSinceStartup
|
||||||
end
|
end
|
||||||
|
|
||||||
--减号长按升级抬起状态
|
--减号长按抬起状态
|
||||||
this._onPointerUpReduce = function(Pointgo, data)
|
this._onPointerUpReduce = function(Pointgo, data)
|
||||||
LogRed("减号长按抬起状态")
|
LogRed("减号长按抬起状态")
|
||||||
_isClickedReduce = false
|
_isClickedReduce = false
|
||||||
end
|
end
|
||||||
|
|
||||||
--加号长按升级按下状态
|
--加号长按按下状态
|
||||||
this._onPointerDownAdd = function(Pointgo, data)
|
this._onPointerDownAdd = function(Pointgo, data)
|
||||||
LogRed("加号长按按下状态")
|
LogRed("加号长按按下状态")
|
||||||
_isClickedAdd = true
|
_isClickedAdd = true
|
||||||
this.timePressStarted = Time.realtimeSinceStartup
|
this.timePressStarted = Time.realtimeSinceStartup
|
||||||
end
|
end
|
||||||
|
|
||||||
--加号长按升级抬起状态
|
--加号长按抬起状态
|
||||||
this._onPointerUpAdd = function(Pointgo, data)
|
this._onPointerUpAdd = function(Pointgo, data)
|
||||||
LogRed("加号长按抬起状态")
|
LogRed("加号长按抬起状态")
|
||||||
_isClickedAdd = false
|
_isClickedAdd = false
|
||||||
|
|
|
@ -98,6 +98,10 @@ local function _CompareCondition(type, condition, value)
|
||||||
return value >= condition
|
return value >= condition
|
||||||
elseif type==8 then --开启周卡解锁
|
elseif type==8 then --开启周卡解锁
|
||||||
return MonthCardManager.GetMonthCardIsOpen(MONTH_CARD_TYPE.MONTHCARD)
|
return MonthCardManager.GetMonthCardIsOpen(MONTH_CARD_TYPE.MONTHCARD)
|
||||||
|
elseif type==9 then --神尊等级解锁
|
||||||
|
return GetShenzunLv() >= condition
|
||||||
|
else
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue