ScoreList m_scores; // The current list of scores. void Awake() { // Singleton boilerplate if (Instance != null) { Destroy(this); return; } Instance = this; // Load last scores. m_scores = new ScoreList(); if (PlayerPrefs.HasKey("scores")) { m_scores.FromBase64(PlayerPrefs.GetString("scores")); } }