private static void DoAnimatorParameterMenu(GameObject go, AnimatorControllerParameterType parameterType)
    {
        GenericMenu          genericMenu            = new GenericMenu();
        IEnumerable <string> animatorParameterNames = StringEditor.GetAnimatorParameterNames(go, parameterType);

        using (IEnumerator <string> enumerator = animatorParameterNames.GetEnumerator())
        {
            while (enumerator.MoveNext())
            {
                string current = enumerator.get_Current();
                genericMenu.AddItem(new GUIContent(current), false, new GenericMenu.MenuFunction2(StringEditor.SetStringValue), current);
            }
        }
        if (genericMenu.GetItemCount() == 0)
        {
            genericMenu.AddDisabledItem(new GUIContent(string.Format(Strings.get_Menu_No_Animator_Parameters(), parameterType)));
        }
        genericMenu.ShowAsContext();
    }