// Use this for initialization void Start() { death = GameObject.FindGameObjectWithTag("Death").GetComponent <DeathManager>(); gameOverText = GetComponent <Text>(); gameOverText.text = gameOverText.text.Replace("<Score>", death.GetEndScore()); gameOverText.text = gameOverText.text.Replace("<Time>", death.GetEndTime()); }