Files
BH3/Assets/Scripts/Assembly-CSharp/MoleMole/MobileDeviceSetupUtil.cs
2025-08-13 09:26:42 +08:00

18 lines
412 B
C#

using UnityEngine;
namespace MoleMole
{
public static class MobileDeviceSetupUtil
{
[RuntimeInitializeOnLoadMethod]
public static void IOSDeviceInitialize()
{
Screen.orientation = ScreenOrientation.AutoRotation;
Screen.autorotateToLandscapeLeft = true;
Screen.autorotateToLandscapeRight = true;
Screen.autorotateToPortrait = false;
Screen.autorotateToPortraitUpsideDown = false;
}
}
}