Switch to BigInteger for scores

This commit is contained in:
2025-06-04 10:15:44 -07:00
parent 4b35500f63
commit 69c9c60ec1
3 changed files with 90 additions and 82 deletions

View File

@@ -1,3 +1,4 @@
using System;
using TMPro;
using UnityEngine;
using UnityEngine.Networking;
@@ -11,6 +12,11 @@ public class LoadingMenu : MonoBehaviour
void Awake()
{
if (PlayerPrefs.HasKey("HighScore"))
{
PlayerPrefs.SetString("HighScoreV2", Math.Max(PlayerPrefs.GetInt("HighScore"), 0).ToString());
PlayerPrefs.DeleteKey("HighScore");
}
Application.targetFrameRate = 360;
QualitySettings.vSyncCount = PlayerPrefs.GetInt("Setting5", 1);
Screen.fullScreen = PlayerPrefs.GetInt("Setting1", 1) == 1;