menu
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user