Make audio get faster when speedy berry is active

This commit is contained in:
2025-09-04 19:26:43 -07:00
parent 7fdba6d071
commit 2c091f444b

View File

@@ -391,6 +391,11 @@ public class GamePlayer : MonoBehaviour
void Update()
{
foreach (AudioSource audio in FindObjectsByType<AudioSource>(FindObjectsSortMode.None))
{
if (speedyLeft != 0 && audio.pitch == 1f) audio.pitch = 1.3f;
if (speedyLeft == 0 && audio.pitch == 1.3f) audio.pitch = 1f;
}
if (BazookaManager.Instance.GetSettingShowFPS() && Time.time > nextUpdate)
{
fps = 1f / Time.deltaTime;