|
|
@@ -140,17 +140,20 @@ public class MeView : MonoBehaviour, MenuBackInterface
|
|
|
// };
|
|
|
|
|
|
//2022-12-6 gps获取地理位置
|
|
|
- GPSTool.GetAddress((address) => {
|
|
|
- if (address != null) {
|
|
|
- countryCode = address[0];
|
|
|
- stateCode = address[1];
|
|
|
- cityCode = address[2];
|
|
|
- GetInputField(inputs.transform.GetChild(6)).text =
|
|
|
- countryCode + " " +
|
|
|
- stateCode + " " +
|
|
|
- cityCode;
|
|
|
- }
|
|
|
- });
|
|
|
+ System.Action eOnAgree = () => {
|
|
|
+ GPSTool.GetAddress((address) => {
|
|
|
+ if (address != null) {
|
|
|
+ countryCode = address[0];
|
|
|
+ stateCode = address[1];
|
|
|
+ cityCode = address[2];
|
|
|
+ GetInputField(inputs.transform.GetChild(6)).text =
|
|
|
+ countryCode + " " +
|
|
|
+ stateCode + " " +
|
|
|
+ cityCode;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ };
|
|
|
+ if (!HomeView.ShowProminentBeforeConnectBLE(eOnAgree)) eOnAgree.Invoke();
|
|
|
}
|
|
|
#endregion
|
|
|
|