void GameOver() { pnlGameOver.SetActive(true); pnlGameOver.GetComponentInChildren <TextMeshProUGUI>().text = "Game Over\nFinal score:\n" + goalManager.GetPoints(); cursorManager.SetVisible(true); }