public static void SetToolTipBasedOnToggle(this UiTooltip tooltip) { UiToggleButton componentInChildren = tooltip.gameObject.GetComponentInChildren <UiToggleButton>(); if (componentInChildren != null && !string.IsNullOrEmpty(tooltip.alternateText)) { string displayText = (!componentInChildren.toggledOn) ? tooltip.alternateText : tooltip.text; if (TooltipManager.field_Text_0 != null) //Only return type field of text { TooltipManager.Method_Public_String_3(displayText); //Last function to take string parameter } else if (tooltip != null) { tooltip.text = displayText; } } }