Пример #1
0
    public void SubmitHighscore()
    {
        int  intScore = 0;
        bool success  = int.TryParse(m_ScoreInputField.text, out intScore);

        if (success)
        {
            m_HighscoreSystem.PostHighscore(m_NameInputField.text, intScore);
        }
        else
        {
            Debug.LogError("The score you wanted to submit is not an integer", this);
        }
    }
 public void SubmitHighscore()
 {
     m_HighscoreSystem.PostHighscore(m_PlayerName.text, m_Email.text, m_ScoreSystem.TotalScore);
 }