public void SendHighScore() { if (playerName.text != "") { PlayerPrefs.SetString("playerName", playerName.text); HighScores.AddNewHighScore(playerName.text, bestScore, false); } SceneManager.LoadScene("HighScore", LoadSceneMode.Single); }
public void Submit() { if (string.IsNullOrEmpty(input.text)) { menu.LoadScene(0); } else { string username = input.text; //string score = clock.minutes.ToString() + ":" + clock.seconds.ToString("f2"); //string score = 50.ToString(); highScores.AddNewHighScore(username, score); StartCoroutine(LoadMenu()); } }
public void SendScore() { Debug.Log("Score Sent"); m_highScores.AddNewHighScore(m_name, m_scoreManager.m_score); m_sentPanel.SetActive(true); }