private void AssignBack()
{
this.m_RGBSwatches.Sort((Comparison<Swatch>) ((a, b) => this.SwatchSort(a, b)));
GradientColorKey[] keyArray = new GradientColorKey[this.m_RGBSwatches.Count];
for (int i = 0; i < this.m_RGBSwatches.Count; i++)
{
keyArray[i].color = this.m_RGBSwatches[i].m_Value;
keyArray[i].time = this.m_RGBSwatches[i].m_Time;
}
this.m_AlphaSwatches.Sort((Comparison<Swatch>) ((a, b) => this.SwatchSort(a, b)));
GradientAlphaKey[] keyArray2 = new GradientAlphaKey[this.m_AlphaSwatches.Count];
for (int j = 0; j < this.m_AlphaSwatches.Count; j++)
{
keyArray2[j].alpha = this.m_AlphaSwatches[j].m_Value.r;
keyArray2[j].time = this.m_AlphaSwatches[j].m_Time;
}
this.m_Gradient.colorKeys = keyArray;
this.m_Gradient.alphaKeys = keyArray2;
this.m_Gradient.mode = this.m_GradientMode;
GUI.changed = true;
}