diff --git a/samples/SmokeTest/Source/Assets/SmokeTest/NearbyGUI.cs b/samples/SmokeTest/Source/Assets/SmokeTest/NearbyGUI.cs index 5722c67a4..8f9f6ca4f 100644 --- a/samples/SmokeTest/Source/Assets/SmokeTest/NearbyGUI.cs +++ b/samples/SmokeTest/Source/Assets/SmokeTest/NearbyGUI.cs @@ -21,7 +21,7 @@ namespace SmokeTest using GooglePlayGames; using GooglePlayGames.BasicApi.Nearby; using UnityEngine; -#if UNITY_ANDROID +#if UNITY_ANDROID && UNITY_2019 using UnityEngine.Android; #endif @@ -72,7 +72,7 @@ internal NearbyGUI(MainGui owner) mMessageLog = new List(); mKnownEndpoints = new HashSet(); -#if UNITY_ANDROID +#if UNITY_ANDROID && UNITY_2019 Permission.RequestUserPermission(Permission.FineLocation); Permission.RequestUserPermission(Permission.CoarseLocation); #endif @@ -513,4 +513,4 @@ public override string ToString() } } } -} \ No newline at end of file +}