public void Deselect() { if (highlight != null) { Destroy(highlight.gameObject); } highlight = null; highlightImage = null; OnDeselectAction?.Invoke(); }
public void OnDeselect(BaseEventData eventData) { if (!Selectable.interactable) { return; } if (highlight != null) { Destroy(highlight.gameObject); } highlight = null; highlightImage = null; OnDeselectAction?.Invoke(); }