public virtual void OnCancel(BaseEventData eventData) { PreciseManeuverDropdown dropdown = GetComponentInParent <PreciseManeuverDropdown>(); if (dropdown) { dropdown.Hide(); } }