31 lines
825 B
C#
31 lines
825 B
C#
|
|
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;
|
||
|
|
}
|
||
|
|
}
|