From 7f493f682503f5186308de7b8f74b5b49233cfe4 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Thu, 2 Nov 2023 11:51:31 +0800 Subject: +init --- GameCode/ResolutionExtensions.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 GameCode/ResolutionExtensions.cs (limited to 'GameCode/ResolutionExtensions.cs') diff --git a/GameCode/ResolutionExtensions.cs b/GameCode/ResolutionExtensions.cs new file mode 100644 index 0000000..989e12e --- /dev/null +++ b/GameCode/ResolutionExtensions.cs @@ -0,0 +1,13 @@ +using UnityEngine; + +public static class ResolutionExtensions +{ + public static bool CompareResolutions(this Resolution resA, Resolution resB) + { + if (resA.width == resB.width) + { + return resA.height == resB.height; + } + return false; + } +} -- cgit v1.1-26-g67d0