private void InsertRank(int newScore) { print(RankData.CheckRank(newScore)); int rank = RankData.CheckRank(newScore); if (rank == 0) { timerText.fontSize = 40; timerText.text = "Amazing! You got the highest score!"; RankData.SetNewRecord(newScore); SaveRankManager.Save(); ReturnButton.gameObject.SetActive(true); } else if (rank > 0 && rank < 5) { timerText.text = "Try again"; RankData.SetNewRecord(newScore); SaveRankManager.Save(); TryAgainButton.gameObject.SetActive(true); } else { timerText.fontSize = 40; timerText.text = "Your score is low. Try again"; TryAgainButton.gameObject.SetActive(true); } }