From f8fda1dc50c9b1e509cf3dde231b7fbc2274501b Mon Sep 17 00:00:00 2001 From: Kornei Dontsov Date: Wed, 18 Jan 2023 19:29:00 +0300 Subject: [PATCH] Simplify defines --- Unity3D/VRSupport.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Unity3D/VRSupport.cs b/Unity3D/VRSupport.cs index 09bc6d1..0972cc9 100644 --- a/Unity3D/VRSupport.cs +++ b/Unity3D/VRSupport.cs @@ -36,10 +36,10 @@ public void PeekCommand() public object isVRSupported(List param) { -#if UNITY_3 || UNITY_4 || UNITY_5_0 || UNITY_5_1 || UNITY_5_2 || UNITY_5_3 - return false; -#elif UNITY_5 || UNITY_2017_1 - return UnityEngine.VR.VRSettings.loadedDeviceName.Equals("CARDBOARD"); +#if !UNITY_5_4_OR_NEWER + return false; +#elif !UNITY_2017_2_OR_NEWER + return UnityEngine.VR.VRSettings.loadedDeviceName.Equals("CARDBOARD"); #else return UnityEngine.XR.XRSettings.loadedDeviceName.Equals("CARDBOARD"); #endif