private void DoEditLogicGraphEventParameters(AnimationEvent evt) { if (string.IsNullOrEmpty(this.m_LogicEventName)) { this.m_LogicEventName = evt.stringParameter; } bool flag = AnimationEventPopup.EnterPressed(); this.m_LogicEventName = EditorGUILayout.TextField("Event name", this.m_LogicEventName, new GUILayoutOption[0]); if (this.m_LogicEventName == evt.stringParameter || this.m_LogicEventName.Trim() == string.Empty) { return; } GUILayout.BeginHorizontal(new GUILayoutOption[0]); GUILayout.FlexibleSpace(); if (GUILayout.Button("Set", EditorStyles.miniButton, new GUILayoutOption[0]) || flag) { AnimationEventPopup.RenameAllReferencesToTheLogicGraphAnimationEventInCurrentScene(this.m_Root.GetComponent(typeof(Animation)) as Animation, evt.stringParameter, this.m_LogicEventName); evt.stringParameter = this.m_LogicEventName; this.LogicGraphEventParameterEditingDone(evt); GUI.changed = true; } if (GUILayout.Button("Cancel", EditorStyles.miniButton, new GUILayoutOption[0]) || AnimationEventPopup.EscapePressed()) { this.LogicGraphEventParameterEditingDone(evt); } GUILayout.EndHorizontal(); }