Move from deprecated functions for finding objects
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user