コード例 #1
0
        private void Save()
        {
            GAMEDATA_SAVE data = new GAMEDATA_SAVE();

            data.endLevel = endLevel;
            data.isBGM    = isBGM;
            data.isEffect = isEffect;

            SaveMgr.Save <GAMEDATA_SAVE>(data, SAVEDATA_FILE);
        }
コード例 #2
0
        private void Load()
        {
            GAMEDATA_SAVE data = SaveMgr.Load <GAMEDATA_SAVE>(SAVEDATA_FILE);

            if (data != null)
            {
                endLevel = data.endLevel;
                isBGM    = data.isBGM;
                isEffect = data.isEffect;
            }
        }