From 35648e87626b554f714babe3a9a43f5a13e95884 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Wed, 19 Jan 2022 15:22:11 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8D=87=E7=BA=A7=E3=80=91=E9=95=BF?= =?UTF-8?q?=E6=8C=89=E5=8D=87=E5=88=B0=E6=9C=80=E5=A4=A7=E7=BA=A7=E4=BA=86?= =?UTF-8?q?=EF=BC=8C=E4=BC=9A=E6=97=A0=E6=B3=95=E8=A7=A6=E5=8F=91=E6=8A=AC?= =?UTF-8?q?=E8=B5=B7=E4=BA=8B=E4=BB=B6=EF=BC=8C=E5=AF=BC=E8=87=B4=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/RoleInfo/RoleInfoLayout.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua index 443f7ea2c1..9ab95a8816 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua @@ -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) @@ -939,7 +943,7 @@ function this.OnUpdate() if timer <= 0 then timer = timer + 0.1 _isLongPress = true - this:LvUpClick(false) + this:LvUpClick(false) end if Time.frameCount - oldFrame > 0 then oldFrame = Time.frameCount