void InitializeSimulationSpeedSelections() { for (int i = 0; i < _simulationSpeed.transform.childCount; i++) { int a = i; _simulationSpeed.transform.GetChild(i) .GetComponent <GenericTooltipHandler>().Initialize( () => TooltipManager.getInstance.OpenTooltip("Set simulation speed to: " + (SimulationSpeed)a + ".\n\n Use [<color=yellow>NUMPAD+</color>], [<color=yellow>NUMPAD-</color>] and [<color=yellow>SPACE</color>] to switch these settings rapidly.", Input.mousePosition), delegate { CommandMapper.SetSimulationSpeed((SimulationSpeed)a); TooltipManager.getInstance.CloseTooltip(); }, null, null, () => TooltipManager.getInstance.CloseTooltip()); } }