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!"); }