Beispiel #1
0
 private void setQualityLevel(string qualityName)
 {
     for (int i = 0; i < QualitySettings.names.Length; i++)
     {
         if (QualitySettings.names[i].Equals(qualityName, StringComparison.OrdinalIgnoreCase))
         {
             QualitySettings.SetQualityLevel(i, applyExpensiveChanges: true);
             QualityConditionalTier.SetValue(qualityName);
             break;
         }
     }
 }
    private void setQualityLevel(string qualityName)
    {
        int num = 0;

        while (true)
        {
            if (num < QualitySettings.names.Length)
            {
                if (QualitySettings.names[num].Equals(qualityName, StringComparison.OrdinalIgnoreCase))
                {
                    break;
                }
                num++;
                continue;
            }
            return;
        }
        QualitySettings.SetQualityLevel(num, applyExpensiveChanges: true);
        QualityConditionalTier.SetValue(qualityName);
    }