Files
BingoGrassland/Assets/BingoSun/Scripts/Sercri/CenConst.cs
T

31 lines
825 B
C#
Raw Normal View History

2026-04-20 13:49:36 +08:00
using UnityEngine;
namespace BingoBrain.Core
{
public static class CenConst
{
public static Vector2 StandardResolution =
new(BingoConst.StandardResolution.x, BingoConst.StandardResolution.y);
public static float StandardWidth => BingoConst.StandardResolution.x;
public static float StandardHeight => BingoConst.StandardResolution.y;
public static Vector2 RawResolution = new(Screen.width, Screen.height);
public static Vector2 CurrResolution = new(Screen.width, Screen.height);
public static float OrthographicSize_1280H = StandardHeight / 2 / BingoConst.PixelsPerUnit;
public static float StandardAspectRatio = StandardHeight / StandardWidth;
public static float CurrAspectRatio = (float)Screen.height / Screen.width;
}
}