Exemplo n.º 1
0
    /// <summary>
    /// 上書き
    /// </summary>
    private void SaveData(UnlockManager unlockManager, FileMode mode)
    {
        FileStream   fs = new FileStream(path + fileName, mode);
        StreamWriter sw = new StreamWriter(fs);

        int stageCount = (int)EScene.StageNull;                 //stage数

        for (int i = 1; i < stageCount; ++i)
        {
            string saveString = unlockManager.SaveString(i);    //Saveの文字列を取得
            sw.WriteLine(saveString);                           //Save
        }

        sw.Close();                                             //終了処理
        fs.Close();                                             //終了処理
    }