16 lines
793 B
C#
16 lines
793 B
C#
using UnityEngine;
|
|
|
|
namespace BallKingdomCrush
|
|
{
|
|
public static class ScreenConst
|
|
{
|
|
public static Vector2 StandardResolution = new(AppConst.StandardResolution.x, AppConst.StandardResolution.y);
|
|
public static float StandardWidth => AppConst.StandardResolution.x;
|
|
public static float StandardHeight => AppConst.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 / AppConst.PixelsPerUnit;
|
|
public static float StandardAspectRatio = StandardHeight / StandardWidth;
|
|
public static float CurrAspectRatio = (float)Screen.height / Screen.width;
|
|
}
|
|
} |