private void SetMouseEvents(GameObject button, int index) { MouseEventToolTips handler = button.GetComponent <MouseEventToolTips>(); string foundText = shipManager.GetModuleOptions()[index].tooltip; handler.SetTooltipText(foundText); }
private void SetMouseEvents(GameObject button) { MouseEventToolTips handler = button.GetComponent <MouseEventToolTips>(); handler.SetTooltipText("Transmute Gold into Fuel to refill all Fuel Tanks."); }