private void Update() { //Count up time and display it if (raceActive) { time += Time.deltaTime; uiTimeText.text = $"{time:#0.000}"; } if (Input.GetKeyDown(KeyCode.F5) && SteamManager.Initialized) { steamLeaderboard.DownloadScores(); } if (Input.GetKeyDown(KeyCode.Return) && !SteamManager.Initialized) { eventLeaderboard.ClearEmptyPlayers(); int exitCode = PlayerForm.AddPlayer(eventLeaderboard.scoreListPath); if (exitCode > 0) { eventLeaderboard.LoadScoreList(); LocalScoreEntry newPlayer = eventLeaderboard.InitPlayer(); eventPlayerName = newPlayer.playerName; cachedEmail = newPlayer.email; LoadNewPlayerStats(); } } }