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); }
private void Load() { GAMEDATA_SAVE data = SaveMgr.Load <GAMEDATA_SAVE>(SAVEDATA_FILE); if (data != null) { endLevel = data.endLevel; isBGM = data.isBGM; isEffect = data.isEffect; } }