public void FadeOutMenu()
 {
     for (int i = 0; i < radialMenuImages.Length; i++)
     {
         Color color = radialMenuImages[i].color;
         fader.DoFadeOut(ref color.a, fadeRate);
         radialMenuImages[i].color         = color;
         radialMenuImages[i].raycastTarget = false;
     }
 }
    // Update is called once per frame
    void Update()
    {
        Color color = renderer.color;   

        if (fadeType == FadeType.FadeOut)
        {
            fader.DoFadeOut(ref color.a, fadeRate);

            if (renderer.color.a <= 0) Destroy(this.gameObject);
        }
        else if (fadeType == FadeType.FadeIn)
        {
            fader.DoFadeIn(ref color.a, fadeRate);

            //if (renderer.color.a >= 1) Destroy(this.gameObject);
        }
        renderer.color = color;
    }