コード例 #1
0
 private void ClickAutoQuality(IUIObject obj)
 {
     if (this.tabIndex == 1)
     {
         TsQualityManager.Instance.RecoveryCustomSettings();
         int optimizedQualityLevel = (int)NrHardwareIndex.GetOptimizedQualityLevel();
         int num = Mathf.Clamp(optimizedQualityLevel, 0, this.m_Quality.Length - 1);
         this.m_Quality[num].Value = true;
         this.Graphic_Reset();
     }
     else if (this.tabIndex == 2)
     {
         this.Sound_Reset();
     }
     else if (this.tabIndex == 4)
     {
         this.CameraRotate_Reset();
     }
 }
コード例 #2
0
 public static TsQualityManager.Level GetOptimizedQualityLevel()
 {
     return((!TsPlatform.IsMobile) ? NrHardwareIndex.GetLevel_Web() : NrHardwareIndex.GetLevel_Mobile());
 }