示例#1
0
        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();
        }
示例#2
0
        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);
        }
示例#3
0
 private void LoadSave()
 {
     m_curProgress = SaveLoad.LoadGame();
 }