public static void LoseLife(float glitchTime)
    {
        if (!staticRef.infiniteLives && staticRef.lives > 0)
        {
            staticRef.lives--;
            staticRef.lifeImages [2 - staticRef.lives].sprite = staticRef.deadIcon;
            staticRef.lifeImages [2 - staticRef.lives].color  = Color.gray;
        }

        if (staticRef.lives == 0)
        {
            NeuralNetController.staticRef.gameObject.SetActive(false);
            Crossfade.fadeAmount = 0f;
            MasterGlitch.FadeToBlack(2f);
            SoundCatalog.PlayDeathSound();
        }
        else
        {
            SoundCatalog.PlayPainSound();
            MasterGlitch.Glitch(glitchTime);
        }
    }
 // Use this for initialization
 void Start()
 {
     staticRef = this;
     m_image   = GetComponent <RawImage> ();
 }