Commit 3b49de06 authored by Unicorn369's avatar Unicorn369

Logical orientation of the screen

parent c92558a7
......@@ -301,7 +301,6 @@ public class Program : MonoBehaviour
*/
ANDROID_GAME_PATH = jo.Call<string>("GamePath", "/ygopro2/");
Screen.sleepTimeout = SleepTimeout.NeverSleep;
if (!File.Exists(ANDROID_GAME_PATH + "updates/version2.0.txt"))
{
string filePath = Application.streamingAssetsPath + "/ygopro2-data.zip";
......@@ -1070,10 +1069,14 @@ public class Program : MonoBehaviour
Screen.SetResolution(1300, 700, false);
}
QualitySettings.vSyncCount = 0;
//Application.targetFrameRate = 144;
#elif UNITY_ANDROID || UNITY_IPHONE //Android、iPhone
Screen.SetResolution(1280, 720, true);
//Application.targetFrameRate = -1;
Screen.sleepTimeout = SleepTimeout.NeverSleep;
Screen.orientation = ScreenOrientation.AutoRotation;
Screen.autorotateToLandscapeLeft = true;
Screen.autorotateToLandscapeRight = true;
Screen.autorotateToPortrait = false;
Screen.autorotateToPortraitUpsideDown = false;
#endif
mouseParticle = Instantiate(new_mouse);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment