From ae634086752885ecfb9996607a52a0e59950328b Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sun, 15 Jun 2025 14:16:37 -0700 Subject: [PATCH] Load new stats on login --- Assets/Scripts/AccountMenu/AccountLogin.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/Scripts/AccountMenu/AccountLogin.cs b/Assets/Scripts/AccountMenu/AccountLogin.cs index 48edc7a..9a411b7 100644 --- a/Assets/Scripts/AccountMenu/AccountLogin.cs +++ b/Assets/Scripts/AccountMenu/AccountLogin.cs @@ -64,6 +64,12 @@ public class AccountLogin : MonoBehaviour PlayerPrefs.SetString("HighScoreV2", highScore.ToString()); PlayerPrefs.SetInt("icon", iconId); PlayerPrefs.SetInt("overlay", overlayId); + PlayerPrefs.SetString("TotalNormalBerries", array[7]); + PlayerPrefs.SetString("TotalPoisonBerries", array[8]); + PlayerPrefs.SetString("TotalSlowBerries", array[9]); + PlayerPrefs.SetString("TotalUltraBerries", array[10]); + PlayerPrefs.SetString("TotalSpeedyBerries", array[11]); + PlayerPrefs.SetString("TotalAttempts", array[12]); AccountHandler.instance.SwitchPanel(0); AccountHandler.UpdateStatusText(loginPanelStatusText, "", Color.red); }