|
|
@@ -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
|
|
|
}
|