public void OnPointerClick(PointerEventData eventData) { if (button != null) { if (!button.interactable) { return; } } settingsMenu.ChangeSetting(settingName); UpdateText(); }