コード例 #1
0
 public void SendHighScore()
 {
     if (playerName.text != "")
     {
         PlayerPrefs.SetString("playerName", playerName.text);
         HighScores.AddNewHighScore(playerName.text, bestScore, false);
     }
     SceneManager.LoadScene("HighScore", LoadSceneMode.Single);
 }
コード例 #2
0
 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());
     }
 }
コード例 #3
0
 public void SendScore()
 {
     Debug.Log("Score Sent");
     m_highScores.AddNewHighScore(m_name, m_scoreManager.m_score);
     m_sentPanel.SetActive(true);
 }