public void CheckSaveFile() { FileManagment.FileChecking(); SaveData save = FileManagment.ReadFile <SaveData>("save.dat"); if (save == null) { SaveData newSave = new SaveData { Levels = new List <Level>() }; newSave.Levels.Add(new Level()); FileManagment.WriteFile("save.dat", newSave); } }