// Update is called once per frame void Update() { if (startFadeIn == true) { fadeIn.StartFade(); startFadeIn = false; } if (startFadeOut == true) { fadeOut.StartFade(); startFadeOut = false; } }