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

@@ -135,7 +135,7 @@ public class AccountHandler : MonoBehaviour {
accountForgotDetails.gameObject.SetActive(true);
break;
}
foreach (CustomColorObject customColorObject in FindObjectsByType<CustomColorObject>(FindObjectsSortMode.None)) customColorObject.SetColor();
foreach (CustomColorObject customColorObject in FindObjectsByType<CustomColorObject>()) customColorObject.SetColor();
}
void Update() {
@@ -128,7 +128,7 @@ public class AccountLoggedIn : MonoBehaviour {
QualitySettings.vSyncCount = 0;
}
MenuMusic.Instance.GetComponent<AudioSource>().volume = BazookaManager.Instance.GetSettingMusicVolume();
foreach (CustomColorObject customColorObject in FindObjectsByType<CustomColorObject>(FindObjectsSortMode.None)) customColorObject.SetColor();
foreach (CustomColorObject customColorObject in FindObjectsByType<CustomColorObject>()) customColorObject.SetColor();
}
Tools.UpdateStatusText(loggedInText, (string)jsonResponse["message"], (bool)jsonResponse["success"] ? Color.green : Color.red);
loggedInChangeUsernameButton.interactable = true;