gameplay手游触屏支持,一些小优化和修复
This commit is contained in:
@@ -35,10 +35,22 @@ public sealed class StartupSettingsApplier : MonoBehaviour
|
||||
|
||||
private void ApplyStartupSettings()
|
||||
{
|
||||
ApplyAndroidLandscapeOrientation();
|
||||
graphicSettings.ApplySavedDisplaySettingsAtStartup(this);
|
||||
ApplySavedAudioSettings();
|
||||
}
|
||||
|
||||
private void ApplyAndroidLandscapeOrientation()
|
||||
{
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
Screen.autorotateToPortrait = false;
|
||||
Screen.autorotateToPortraitUpsideDown = false;
|
||||
Screen.autorotateToLandscapeLeft = true;
|
||||
Screen.autorotateToLandscapeRight = true;
|
||||
Screen.orientation = ScreenOrientation.AutoRotation;
|
||||
#endif
|
||||
}
|
||||
|
||||
private void ApplySavedAudioSettings()
|
||||
{
|
||||
audioSettingsPreloader[] preloaders = FindObjectsByType<audioSettingsPreloader>(FindObjectsInactive.Include, FindObjectsSortMode.None);
|
||||
|
||||
Reference in New Issue
Block a user