Files
ichni_Official/Assets/Scripts/UI/UIManager.cs
SoulliesOfficial 27529d44dc 选章节
2025-06-09 04:52:14 -04:00

29 lines
611 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ichni.UI
{
public class UIManager : MonoBehaviour
{
public static UIManager instance;
private static readonly Vector2 standardResolution = new Vector2(1920, 1080);
private void Awake()
{
instance = this;
}
public float GetScreenRatio()
{
return (float)Screen.width / Screen.height;
}
public bool IsWideScreen()
{
return GetScreenRatio() < 1.34f;
}
}
}