Esempio n. 1
0
    public void SubmitScore()
    {
        // get player name from input box
        playerName = inputText.GetComponent <TextMeshProUGUI>().text;

        // add new score
        SaveSystem.AddHighScoreEntry(playerScore, playerName);

        // back to main menu
        this.ReturnToMain();
    }