From e781b3138d3dab23e4dffd538e750b167f2a2208 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Fri, 5 Sep 2025 14:08:34 -0700 Subject: [PATCH] Fix audio pitch --- Assets/Scripts/GamePlayer.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/Scripts/GamePlayer.cs b/Assets/Scripts/GamePlayer.cs index 0fb1109..28a8ef9 100644 --- a/Assets/Scripts/GamePlayer.cs +++ b/Assets/Scripts/GamePlayer.cs @@ -396,8 +396,7 @@ public class GamePlayer : MonoBehaviour { foreach (AudioSource audio in FindObjectsByType(FindObjectsSortMode.None)) { - if (speedyLeft != 0 && audio.pitch == 1f) audio.pitch = 1.3f; - if (speedyLeft == 0 && audio.pitch == 1.3f) audio.pitch = 1f; + audio.pitch = speedyLeft > 0f ? 1.3f : 1f; } if (BazookaManager.Instance.GetSettingShowFPS() && Time.time > nextUpdate) {