mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
18 lines
412 B
C#
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;
|
|
}
|
|
}
|
|
}
|