private void RemoveDuplicateOverlappingSwatches()
{
bool flag = false;
for (int i = 1; i < this.m_RGBSwatches.Count; i++)
{
if (Mathf.Approximately(this.m_RGBSwatches[i - 1].m_Time, this.m_RGBSwatches[i].m_Time))
{
this.m_RGBSwatches.RemoveAt(i);
i--;
flag = true;
}
}
for (int j = 1; j < this.m_AlphaSwatches.Count; j++)
{
if (Mathf.Approximately(this.m_AlphaSwatches[j - 1].m_Time, this.m_AlphaSwatches[j].m_Time))
{
this.m_AlphaSwatches.RemoveAt(j);
j--;
flag = true;
}
}
if (flag)
{
this.AssignBack();
}
}