internal void AddButton(Rect rect, ReorderableList list)
{
this.m_SpawnListProperty.arraySize++;
list.index = this.m_SpawnListProperty.arraySize - 1;
SerializedProperty arrayElementAtIndex = this.m_SpawnListProperty.GetArrayElementAtIndex(this.m_SpawnListProperty.arraySize - 1);
if (arrayElementAtIndex.objectReferenceValue != null)
{
arrayElementAtIndex.objectReferenceValue = null;
}
this.m_SpawnList.index = this.m_SpawnList.count - 1;
}