Exemplo n.º 1
0
 public void Apply()
 {
     if (this.customCursorEnabled)
     {
         CustomCursor.Activate();
     }
     else
     {
         CustomCursor.Deactivate();
     }
     AudioListener.volume        = this.volumeGame;
     Application.runInBackground = this.runInBackground;
     if (this.screenWidth == 0 || this.screenHeight == 0)
     {
         ResolutionUtility.SetNativeResolutionRaw();
     }
     else
     {
         ResolutionUtility.SetResolutionRaw(this.screenWidth, this.screenHeight, this.fullscreen);
     }
 }
Exemplo n.º 2
0
 public void Apply()
 {
     if (UnityData.IsInMainThread)
     {
         if (customCursorEnabled)
         {
             CustomCursor.Activate();
         }
         else
         {
             CustomCursor.Deactivate();
         }
         AudioListener.volume        = volumeGame;
         Application.runInBackground = runInBackground;
         if (screenWidth == 0 || screenHeight == 0)
         {
             ResolutionUtility.SetNativeResolutionRaw();
         }
         else
         {
             ResolutionUtility.SetResolutionRaw(screenWidth, screenHeight, fullscreen);
         }
     }
 }