public static void SaveGame(Save.SaveInfo info) { Save.m_current.m_saveInfo = info; BinaryFormatter bf = new BinaryFormatter(); FileStream file = File.Create(GetSavePath()); bf.Serialize(file, Save.m_current); file.Close(); }
private static Save.SaveInfo GetDefault() { Save.SaveInfo save = new Save.SaveInfo(); save.m_level = 1; save.m_money = 0; save.m_isMusic = true; save.m_isVibro = true; return(save); }
private void LoadSave() { m_curProgress = SaveLoad.LoadGame(); }