Move from deprecated functions for finding objects

This commit is contained in:
Lncvrt committed 2026-04-04 07:39:58 -07:00
1 parent 131ac97281
commit 9bf20cb727
13 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -254,7 +254,7 @@ public class GamePlayer : MonoBehaviour {
void Update() {
if (!pausePanel.activeSelf && rb.gravityScale != 100f * canvasRect.lossyScale.y) rb.gravityScale = 100f * canvasRect.lossyScale.y;
foreach (AudioSource audio in FindObjectsByType<AudioSource>(FindObjectsSortMode.None)) audio.pitch = speedyLeft > 0f ? 1.3f : 1f;
foreach (AudioSource audio in FindObjectsByType<AudioSource>()) audio.pitch = speedyLeft > 0f ? 1.3f : 1f;
SpawnBerries();
if (!pausePanel.activeSelf) {