From 2fb32c44e8b8bc0b484a30d9f323ce7189079325 Mon Sep 17 00:00:00 2001 From: bottlefish <781230111@qq.com> Date: Wed, 22 Jul 2026 16:25:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(fixsystem):=20=E4=BF=AE=E5=A4=8D=E5=8F=91?= =?UTF-8?q?=E6=9D=A1=E5=BD=92=E9=9B=B6=E6=97=B6=E5=85=85=E8=83=BD=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=9C=AA=E9=87=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- Assets/Scripts/FixSystemNew/Open/ShockSystem.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/FixSystemNew/Open/ShockSystem.cs b/Assets/Scripts/FixSystemNew/Open/ShockSystem.cs index d425c27bd..eadbf4033 100644 --- a/Assets/Scripts/FixSystemNew/Open/ShockSystem.cs +++ b/Assets/Scripts/FixSystemNew/Open/ShockSystem.cs @@ -326,8 +326,21 @@ public class ShockSystem : MonoBehaviour, IInteraction lastMousePosition = mousePosition; float progressRatio = targetLeverAngle / maxLeverAngle; + if (progressRatio <= 0f) + { + if (isCharging) + { + isCharging = false; + ResetProgress(); + } + + return; + } + if (progressRatio > 0 && !isCharging) { + progressTweener?.Kill(); + progressTweener = null; isCharging = true; StartCharging(); AibisDream.Kit.AudioManager.Instance.PlaySfx(chargingEvent, chargingAudioKey); @@ -884,4 +897,4 @@ public class ShockLeverInteractionBridge : MonoBehaviour, IInteraction public bool IsActive => _shockSystem?.IsActive ?? true; public bool IsAvailable => _shockSystem?.IsAvailable ?? true; public GameObject GetGameObject() => gameObject; -} \ No newline at end of file +}