This commit is contained in:
SoulliesOfficial
2025-07-26 04:20:25 -04:00
parent bae0bfbc20
commit abf81ece7b
196 changed files with 3909 additions and 964 deletions

View File

@@ -5,23 +5,17 @@ using UnityEngine;
namespace Ichni.UI
{
public class UIManager : MonoBehaviour
public static class UIManager
{
public static UIManager instance;
private static readonly Vector2 standardResolution = new Vector2(1920, 1080);
public static float StandardRatio = 16f / 9f;
private void Awake()
{
instance = this;
}
public float GetScreenRatio()
public static float GetScreenRatio()
{
return (float)Screen.width / Screen.height;
}
public bool IsWideScreen()
public static bool IsWideScreen()
{
return GetScreenRatio() < 1.34f;
}