Files
ichni_Official/Assets/Scripts/UI/UIManager.cs

29 lines
611 B
C#
Raw Normal View History

2025-06-09 04:52:14 -04:00
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;
}
}
}