public void ClearStage() { cleared = true; // enable clear panel clearPanel.SetActive(true); // set text for score and time displays GameObject.Find("ClearTime").GetComponent <Text>().text = "Time Left = " + TimeTracker.GetTimeText(time); GameObject.Find("ClearScore").GetComponent <Text>().text = "Score = " + ScoreController.GetScoreText(score); }