void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         username = GetUsername();
         score    = GetScore();
         Leaderboard.AddNewScore(username, score);
     }
 }
    public void PressOk()
    {
        if (isValidUsername)
        {
            HideInputUI();

            Leaderboard.AddNewScore(username, gameManager.GetCoinCount());

            StartCoroutine(AllowRestart());
        }
    }
Esempio n. 3
0
    public void SubmitScore(string username)
    {
        int score = coins;

        Leaderboard.AddNewScore(username, score);
    }