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; + } } } }