Fix android FPS + 26.1 (not release just setting version) + Remove 1.4.1 to 1.5.0+ legacy conversion

This commit is contained in:
2026-01-19 19:42:40 -07:00
parent 5370ccc006
commit d0bd8c796e
3 changed files with 2 additions and 331 deletions

View File

@@ -1,4 +1,3 @@
using System;
using TMPro;
using UnityEngine;
using UnityEngine.Networking;
@@ -25,21 +24,6 @@ public class LoadingMenu : MonoBehaviour
Application.targetFrameRate = 360;
QualitySettings.vSyncCount = 0;
}
if (!PlayerPrefs.HasKey("LegacyConversion"))
{
if (PlayerPrefs.GetString("latestVersion", Application.version) == "1.4.0-beta1")
{
PlayerPrefs.DeleteKey("Setting2");
PlayerPrefs.DeleteKey("Setting3");
PlayerPrefs.SetInt("Setting2", PlayerPrefs.GetInt("Setting4", 0));
PlayerPrefs.SetInt("Setting3", PlayerPrefs.GetInt("Setting5", 0));
}
if (PlayerPrefs.HasKey("HighScore"))
{
PlayerPrefs.SetString("HighScoreV2", Math.Max(PlayerPrefs.GetInt("HighScore"), 0).ToString());
PlayerPrefs.DeleteKey("HighScore");
}
}
PlayerPrefs.SetString("latestVersion", Application.version);
updateButton.onClick.AddListener(() =>
{