bingo 项目提交
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user