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

23 lines
549 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
{
2025-07-26 04:20:25 -04:00
public static class UIManager
2025-06-09 04:52:14 -04:00
{
private static readonly Vector2 standardResolution = new Vector2(1920, 1080);
2025-07-26 04:20:25 -04:00
public static float StandardRatio = 16f / 9f;
2025-06-09 04:52:14 -04:00
2025-07-26 04:20:25 -04:00
public static float GetScreenRatio()
2025-06-09 04:52:14 -04:00
{
return (float)Screen.width / Screen.height;
}
2025-07-26 04:20:25 -04:00
public static bool IsWideScreen()
2025-06-09 04:52:14 -04:00
{
return GetScreenRatio() < 1.34f;
}
}
}