public static void SaveExternal(string saveName = "SaveData") { string fileName = $"{saveName}.bin"; instance.SaveAllDataInternal(); Debug.Log("Writing persisient data to File."); FileStream stream = File.Open(Application.persistentDataPath + "/" + fileName, FileMode.OpenOrCreate); var formatter = new BinaryFormatter(); formatter.Serialize(stream, instance.m_Store); stream.Close(); }