From bae7aa1239e3052e4077c820816f4c84055d215a Mon Sep 17 00:00:00 2001 From: nexovec Date: Sat, 29 Jan 2022 22:48:48 +0100 Subject: [PATCH] I am really sorry. --- Assets/Scripts/UiController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/UiController.cs b/Assets/Scripts/UiController.cs index 29489e0..3b30171 100644 --- a/Assets/Scripts/UiController.cs +++ b/Assets/Scripts/UiController.cs @@ -23,7 +23,7 @@ public class UiController : MonoBehaviour } void SaveGame() { - PlayerPrefs.SetInt(PlayerController.highScore); + PlayerPrefs.SetInt("HighestScore", this.highScore); PlayerPrefs.Save(); Debug.Log("Game data saved!"); }