private void AddParameterMenu(object value)
{
Undo.RegisterCompleteObjectUndo(this.m_Host.animatorController, "Parameter Added");
UnityEngine.AnimatorControllerParameterType type = (UnityEngine.AnimatorControllerParameterType) value;
string name = "New " + type.ToString();
this.m_Host.animatorController.AddParameter(name, type);
this.RebuildList();
this.m_ParameterList.index = this.m_Tree.Length - 1;
if (this.renameOverlay.IsRenaming())
{
this.RenameEnd();
}
this.renameOverlay.BeginRename(this.m_Host.animatorController.parameters[this.m_ParameterList.index].name, this.m_ParameterList.index, 0.1f);
}