From f39757b3b7913e347b32a38e0bef18d82de7af83 Mon Sep 17 00:00:00 2001 From: GanX <2423855310@qq.com> Date: Thu, 30 Oct 2025 16:01:41 +0800 Subject: [PATCH] =?UTF-8?q?fix():=E4=BF=AE=E5=A4=8D=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=A7=BD=E9=87=8D=E5=A4=8D=E5=8F=91=E9=80=81=E7=9B=B8=E5=90=8C?= =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Script/Gameplay/Facility/NumberSlotController.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Assets/Script/Gameplay/Facility/NumberSlotController.cs b/Assets/Script/Gameplay/Facility/NumberSlotController.cs index ddb70ce..3bd1eee 100644 --- a/Assets/Script/Gameplay/Facility/NumberSlotController.cs +++ b/Assets/Script/Gameplay/Facility/NumberSlotController.cs @@ -27,7 +27,8 @@ namespace Script.Gameplay.Facility [SerializeField] private GameObject FlowerIcon; [SerializeField] private GameObject LeafIcon; [SerializeField] private GameObject WaveIcon; - + + private bool lastSendSignal = false; private void Start() { // 初始化图标显示 @@ -89,7 +90,11 @@ namespace Script.Gameplay.Facility private void CheckNumberAndSendSignal() { bool isCorrect = currentNumber == correctNumber; - SendSignal(isCorrect, this.gameObject); + if (lastSendSignal != isCorrect) + { + SendSignal(isCorrect, this.gameObject); + lastSendSignal = isCorrect; + } } } }