public static void Load(string repositoryId = null, string segmentId = null) { string path = String.Format("{0}/Data/{1}.data", Application.dataPath, repositoryId ?? DefaultRepositoryName); if (!File.Exists(path)) { return; } byte[] bytes = File.ReadAllBytes(path); var modelData = SerializationUtility.DeserializeValue <ModelData>(bytes, DataFormat.Binary); Highscores.AddRange(modelData.Highscores); }