internal void ChannelRemoveButton(ReorderableList list)
{
if (this.m_NetworkManager.channels.Count == 1)
{
if (LogFilter.logError)
{
Debug.LogError("Cannot remove channel. There must be at least one QoS channel.");
}
}
else
{
this.m_ChannelListProperty.DeleteArrayElementAtIndex(this.m_ChannelList.index);
if (list.index >= (this.m_ChannelListProperty.arraySize - 1))
{
list.index = this.m_ChannelListProperty.arraySize - 1;
}
}
}