From c2c05f391c32a7546ecf17f031e2387409906a67 Mon Sep 17 00:00:00 2001 From: yuanshuai <243578945@qq.com> Date: Tue, 13 Sep 2022 10:51:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=9D=83=E6=94=B6=E7=9B=8A=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/NewShenZun/NewShenZunExpExchangePopup.lua | 8 ++++---- .../~Lua/Modules/Player/PrivilegeManager.lua | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/NewShenZun/NewShenZunExpExchangePopup.lua b/Assets/ManagedResources/~Lua/Modules/NewShenZun/NewShenZunExpExchangePopup.lua index b2ea4b256f..f664808dae 100644 --- a/Assets/ManagedResources/~Lua/Modules/NewShenZun/NewShenZunExpExchangePopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/NewShenZun/NewShenZunExpExchangePopup.lua @@ -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 diff --git a/Assets/ManagedResources/~Lua/Modules/Player/PrivilegeManager.lua b/Assets/ManagedResources/~Lua/Modules/Player/PrivilegeManager.lua index 2a6c3a6cd5..efdad0d10f 100644 --- a/Assets/ManagedResources/~Lua/Modules/Player/PrivilegeManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Player/PrivilegeManager.lua @@ -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