// Update is called once per frame void Update() { if (fading) { GetComponent <Image>().color += new Color(0, 0, 0, 1 * Time.deltaTime); if (GetComponent <Image>().color.a >= 0.99) { sceneFlow.ReloadScene(); } } }