public static void ShowLevelEndScreen(Outcome o) { singletonInstance.timeFinished = DateTime.Now; singletonInstance.timeElapsed = singletonInstance.timeFinished.Subtract(singletonInstance.timeStart); string time = string.Format("{0:00}:{1:00}", singletonInstance.timeElapsed.Minutes, singletonInstance.timeElapsed.Seconds); string outcome = null; string option = null; if (o == Outcome.Victory) { outcome = "Victory"; option = "Continue"; singletonInstance.levelWon = true; } else if (o == Outcome.Defeat) { outcome = "Defeat"; option = "Replay"; singletonInstance.levelWon = false; } singletonInstance.outcome.GetComponent <TextMeshProUGUI>().text = outcome; singletonInstance.killValueText.GetComponent <TextMeshProUGUI>().text = singletonInstance.kills.ToString(); singletonInstance.timeValueText.GetComponent <TextMeshProUGUI>().text = time; singletonInstance.livesValueText.GetComponent <TextMeshProUGUI>().text = LivesController.GetCurrentLives().ToString(); singletonInstance.optionText.GetComponent <Text>().text = option; singletonInstance.StartCoroutine("BeginLevelEndAnimation"); }