void transitionMenu() { GUILayout.Label("Transition Speed: " + transitionSpeed.ToString()); transitionSpeed = GUILayout.HorizontalSlider(transitionSpeed, 0.001f, 10f); selectedTransition = GUILayout.SelectionGrid(selectedTransition, transitionNames, 1); hat.setTimeTransitionFunction(selectedTransition); topHat.setTimeTransitionFunction(selectedTransition); }