I am really sorry.

This commit is contained in:
nexovec 2022-01-29 22:48:48 +01:00
parent 7a964f17d9
commit bae7aa1239

View File

@ -23,7 +23,7 @@ public class UiController : MonoBehaviour
} }
void SaveGame() void SaveGame()
{ {
PlayerPrefs.SetInt(PlayerController.highScore); PlayerPrefs.SetInt("HighestScore", this.highScore);
PlayerPrefs.Save(); PlayerPrefs.Save();
Debug.Log("Game data saved!"); Debug.Log("Game data saved!");
} }