From 061b35f7f5424cabf6701f28c55c35024d3b19af Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期二, 30 九月 2025 11:58:31 +0800 Subject: [PATCH] 10 【武将】武将系统-测试bug2 --- Main/Component/UI/Common/LongPressButton.cs | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/Main/Component/UI/Common/LongPressButton.cs b/Main/Component/UI/Common/LongPressButton.cs index 3cb9cf1..d5ce059 100644 --- a/Main/Component/UI/Common/LongPressButton.cs +++ b/Main/Component/UI/Common/LongPressButton.cs @@ -75,6 +75,13 @@ { if (m_IsButtonDown) { + if (!this.interactable || !this.IsActive() || !this.enabled) + { + // 濡傛灉鎸夐挳涓嶅彲鐢紝鍒欏彇娑堥暱鎸夌姸鎬� + m_IsButtonDown = false; + m_LongPress = false; + return; + } m_PressTime += Time.deltaTime; if (m_PressTime < m_LongPressCheckTime) { -- Gitblit v1.8.0