少年修仙传客户端代码仓库
client_Hale
2019-05-06 25bb439c34f811feceb5dd05b56c1c7e3e8ea00a
Utility/ResolutionUtility.cs
@@ -1,12 +1,14 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Diagnostics;
public class ResolutionUtility
{
    public static readonly Vector2 originalResolution = new Vector2(Screen.width, Screen.height);
    public static Vector2 currentResolution = new Vector2(Screen.width, Screen.height);
    [Conditional("UNITY_ANDROID")]
    public static void AdjustResolution()
    {
        Screen.SetResolution(Mathf.RoundToInt(currentResolution.x), Mathf.RoundToInt(currentResolution.y), true);