Move from deprecated functions for finding objects
This commit is contained in:
13 files changed
+21
-21
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user