ios build

This commit is contained in:
2020-07-10 18:50:21 +08:00
parent 17ce14b01a
commit d7901e444d
21 changed files with 920 additions and 25 deletions

View File

@@ -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();