ParticleSystemCurveEditor.Remove C# (CSharp) Method

Remove() private method

private Remove ( int index ) : bool
index int
return bool
    private bool Remove(int index)
    {
        if ((index >= 0) && (index < this.m_AddedCurves.Count))
        {
            Color item = this.m_AddedCurves[index].m_Color;
            this.m_AvailableColors.Add(item);
            SessionState.EraseVector3(this.m_AddedCurves[index].m_UniqueName);
            this.m_AddedCurves.RemoveAt(index);
            if (this.m_AddedCurves.Count == 0)
            {
                this.m_AvailableColors = new List<Color>(this.m_Colors);
            }
            return true;
        }
        Debug.Log("Invalid index in ParticleSystemCurveEditor::Remove");
        return false;
    }