private void DrawCondition(int index)
        {
            GUILayout.BeginHorizontal();

            EditorGUILayout.PropertyField(_conditionList.GetProperty(index));

            bool oldEnabled = GUI.enabled;

            GUI.enabled &= _conditionList.IsNotMinIndex(index);
            if (GUILayout.Button("↑"))
            {
                _conditionList.Swap(index, index - 1);
            }

            GUI.enabled = oldEnabled && _conditionList.IsNotMaxIndex(index);
            if (GUILayout.Button("↓"))
            {
                _conditionList.Swap(index, index + 1);
            }

            GUI.enabled = oldEnabled;
            if (GUILayout.Button("✕"))
            {
                _conditionList.Remove(index);
            }

            GUILayout.EndHorizontal();
        }
 public void RemoveMessage(Message m)
 {
     messages.Remove(m);
     Trigger(-599791736, null);
 }