public override void OnSelect(BaseEventData eventData) { base.OnSelect(eventData); // Call methods when the UI element is selected MenuCursor.SelectCursor(this.gameObject.GetComponent <RectTransform>()); }