private void Start() { if (!PlayerPrefs.HasKey(antiAliasingPref)) { PlayerPrefs.SetInt(antiAliasingPref, (int)antiAliasingQuality); } if (!PlayerPrefs.HasKey(postProcessPref)) { PlayerPrefs.SetInt(postProcessPref, (int)postProcessingMode); } postProcessingMode = (PostProcessingQuality)PlayerPrefs.GetInt(postProcessPref); antiAliasingQuality = (FxAntiAliasingQuality)PlayerPrefs.GetInt(antiAliasingPref); }
public void SetPostProcessingQuality(int quality) { postProcessingMode = (PostProcessingQuality)quality; PlayerPrefs.SetInt(postProcessPref, quality); }