public void saveName(String str) { //CHECK IF NAME IS ON LEADERBOARD ALREADY if (highscoreInstance.IsNameTaken(str)) { StartCoroutine(DeletePreviousName(givenName)); PlayerPrefs.SetString("name", str); givenName = PlayerPrefs.GetString("name", givenName); } }