public void Disable() { gameObject.GetComponent <Image>().raycastTarget = false; gameObject.GetComponent <Button>().interactable = false; if (fade != null) { fade.TextFadeOut(); } elemState = UIElementState.Inactive; }
public void Disable() { EventSystem.current.SetSelectedGameObject(null); gameObject.GetComponent <Button>().interactable = false; fade.TextFadeOut(); }