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()); } }
public void SubmitScore(string username) { int score = coins; Leaderboard.AddNewScore(username, score); }