void OnDisable()
 {
     if (pivot != null)
     {
         m_AnlgeSlider.onValueChange -= ChangeAngle;
         ChangeAngle(originValue01);
     }
     pivot = null;
 }
    void Start()
    {
        pivot = null;

        if (VCEditor.s_Active)
        {
            VCESelectComponent brush = VCEditor.SelectComponentBrush;
            if (brush != null && brush.m_Selection != null && brush.m_Selection.Count == 1)
            {
                var component = brush.m_Selection[0].m_Component;
                if (component != null)
                {
                    pivot = component.GetComponent <WhiteCat.VCPPivot>();
                    if (pivot != null)
                    {
                        m_AnlgeSlider.onValueChange += ChangeAngle;
                        originValue01 = m_AnlgeSlider.sliderValue;
                    }
                }
            }
        }
    }