public void FadeToClear() { // Lerp the colour of the panel between itself and transparent image.color = Color.Lerp (image.color, Color.clear, fadeOutSpeed * Time.deltaTime); }