void OnApplicationStateChanged(ApplicationStateData data) { if (data.qualityStateData != m_CachedQualityStateData) { m_CachedQualityStateData = data.qualityStateData; } }
void OnApplicationStateChanged(ApplicationStateData data) { if (data.qualityStateData == m_CachedQualityStateData) { return; } if (m_CachedQualityStateData.qualityLevel != data.qualityStateData.qualityLevel) { QualitySettings.SetQualityLevel(data.qualityStateData.qualityLevel); } m_CachedQualityStateData = data.qualityStateData; }