ios build
This commit is contained in:
@@ -46,7 +46,7 @@ public class MyLocation : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
#if !UNITY_EDITOR && UNITY_IOS
|
||||
#if UNITY_IOS
|
||||
[System.Runtime.InteropServices.DllImport("__Internal")]
|
||||
private static extern void _init(string ak, string goName, int coorType);
|
||||
[System.Runtime.InteropServices.DllImport("__Internal")]
|
||||
@@ -69,10 +69,6 @@ public class MyLocation : MonoBehaviour
|
||||
#endif
|
||||
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
private static extern void _init(string ak4Ios, string goName, int coorType);
|
||||
#endif
|
||||
public void init(int coorType)
|
||||
{
|
||||
this.coorType = coorType;
|
||||
@@ -115,10 +111,6 @@ public class MyLocation : MonoBehaviour
|
||||
#endif
|
||||
}
|
||||
|
||||
#if UNITY_IOS
|
||||
[DllImport("__Internal")]
|
||||
private static extern void _getMyLocation();
|
||||
#endif
|
||||
public void getMyLocation(object callback)
|
||||
{
|
||||
checkUserPermission();
|
||||
|
||||
Reference in New Issue
Block a user