少年修仙传客户端代码仓库
client_linchunjie
2019-05-06 207aa333c708eceaadbf77a5c112d0c95efdbced
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);