public void Switch() { if (value) { UAP_AccessibilityManager.EnableAccessibility(false); value = false; gameObject.name = "Press Enter To Enable Accessibility"; GetComponentInChildren <TextMeshProUGUI>().text = "Enable Accessibility"; } else { titleMenu.AccEnabled = true; UAP_AccessibilityManager.EnableAccessibility(true); value = true; gameObject.name = "Press Enter To Disable Accessibility"; GetComponentInChildren <TextMeshProUGUI>().text = "Disable Accessibility"; titleMenu.Reset(); } }