Fix default color thing

This commit is contained in:
2025-09-12 10:01:47 -07:00
parent f932fe3aeb
commit b5a5cdc890

View File

@@ -42,7 +42,7 @@ public class SettingsMenu : MonoBehaviour
settingsMenu.SetActive(!settingsMenu.activeSelf); settingsMenu.SetActive(!settingsMenu.activeSelf);
colorMenu.gameObject.SetActive(!colorMenu.gameObject.activeSelf); colorMenu.gameObject.SetActive(!colorMenu.gameObject.activeSelf);
toggleButton.transform.GetChild(0).GetComponent<TMP_Text>().text = settingsMenu.activeSelf ? "Colors" : "Settings"; toggleButton.transform.GetChild(0).GetComponent<TMP_Text>().text = settingsMenu.activeSelf ? "Colors" : "Settings";
SwitchColorType(3); SwitchColorType(4);
foreach (CustomColorObject customColorObject in FindObjectsByType<CustomColorObject>(FindObjectsSortMode.None)) customColorObject.SetColor(); foreach (CustomColorObject customColorObject in FindObjectsByType<CustomColorObject>(FindObjectsSortMode.None)) customColorObject.SetColor();
}); });
switchColorTypeButton.onClick.AddListener(() => SwitchColorType()); switchColorTypeButton.onClick.AddListener(() => SwitchColorType());