public static void ActivateLoseScreen() { beenTrig = true; foreach (GameObject obj in GameObject.FindGameObjectsWithTag("Scenery")) { SpriteRenderer spriteRenderer = obj.GetComponent <SpriteRenderer>(); if (spriteRenderer != null) { instance.StartCoroutine(instance.FadeOutSprite(spriteRenderer)); } } instance.winText.text = instance.loseQuote; instance.winText.CrossFadeAlpha(1, 1, true); instance.StartCoroutine(instance.HandleRestartText(2, 1)); }