Browse Source

修复安卓打包失败问题

lvjincheng 3 years ago
parent
commit
e8ece9395c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Assets/BowArrow/Scripts/Expand/LocationPluginInterface.cs

+ 2 - 2
Assets/BowArrow/Scripts/Expand/LocationPluginInterface.cs

@@ -18,7 +18,7 @@ public class LocationPluginInterface
 	// 开始获取位置信息
 	public static bool StartUpdatingLocation(IntPtr resultHandler)
 	{
-#if !UNITY_EDITOR
+#if !UNITY_EDITOR && UNITY_IOS
 		return _startUpdatingLocation(resultHandler);
 #else
 		return false;
@@ -28,7 +28,7 @@ public class LocationPluginInterface
 	// 停止获取位置信息
 	public static void StopUpdatingLocation()
 	{
-#if !UNITY_EDITOR
+#if !UNITY_EDITOR && UNITY_IOS
 		_stopUpdatingLocation();
 #endif
 	}