예제 #1
0
 void OnApplicationStateChanged(ApplicationStateData data)
 {
     if (data.qualityStateData != m_CachedQualityStateData)
     {
         m_CachedQualityStateData = data.qualityStateData;
     }
 }
예제 #2
0
        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;
        }