Exemplo n.º 1
0
        public void Save()
        {
            Debug.Log("Save");

            jsonStorage.Set(JsonStorageKeys.V1.UI_STATE, uiState);
            jsonStorage.Set(JsonStorageKeys.V1.MIDI_SYNTH_CONFIGS, midiSynthConfigs);
            jsonStorage.Set(JsonStorageKeys.V1.GAMEPLAY_CONFIG, gameplayConfig);
            jsonStorage.Set(JsonStorageKeys.V1.APP_CONFIG, appConfig);
            jsonStorage.Flush();

            translationSevice.Flush();

            PlayerPrefs.SetString("TEMP_USERNAME", username);
            PlayerPrefs.SetString("TEMP_PASSWORD", password);
        }