ParticleSystemCurveEditor.DoRemoveSelectedButton C# (CSharp) Method

DoRemoveSelectedButton() private method

private DoRemoveSelectedButton ( Rect rect ) : void
rect Rect
return void
    private void DoRemoveSelectedButton(Rect rect)
    {
        if (this.m_CurveEditor.animationCurves.Length != 0)
        {
            float width = 14f;
            Rect position = new Rect(((rect.x + rect.width) - width) - 10f, rect.y + ((rect.height - width) * 0.5f), width, width);
            if (GUI.Button(position, s_Styles.removeCurveText, s_Styles.minus))
            {
                if (this.m_CurveEditor.selectedCurves.Count > 0)
                {
                    this.RemoveSelected();
                }
                else
                {
                    this.RemoveTopMost();
                }
            }
        }
    }