public void SaveData(string levelSceneName, List <MyDataEntry> dataEntries)
        {
            BinaryFormatter bf   = new BinaryFormatter();
            FileStream      file = File.Create(Application.persistentDataPath + "/" + levelSceneName + ".dat");

            LevelDataEntries currentLevelDataEntries = new LevelDataEntries();

            currentLevelDataEntries.dataEntries = dataEntries;

            bf.Serialize(file, currentLevelDataEntries);
            file.Close();
        }
        public List <MyDataEntry> LoadData(string levelSceneName)
        {
            if (File.Exists(Application.persistentDataPath + "/" + levelSceneName + ".dat"))
            {
                BinaryFormatter bf   = new BinaryFormatter();
                FileStream      file = File.Open(Application.persistentDataPath + "/" + levelSceneName + ".dat", FileMode.Open);

                LevelDataEntries currentLevelDataEntries = (LevelDataEntries)bf.Deserialize(file);
                file.Close();

                return(currentLevelDataEntries.dataEntries);
            }
            else
            {
                return(null);
            }
        }