Beispiel #1
0
 public YxLocationManager()
 {
     Debug.Log("默认Gps");
     GpsInstance = new DefaultLocationManager {
         Loop = false
     };
 }
Beispiel #2
0
        public YxLocationManager()
        {
            Debug.Log("高德Gps");
            switch (Application.platform)
            {
            case RuntimePlatform.Android:
                GpsInstance = new GaodeLocationAndroidManager {
                    Loop = false
                };
                return;

            case RuntimePlatform.IPhonePlayer:
                GpsInstance = new GodeLocationIosManager {
                    Loop = false
                };
                return;

            default:
                GpsInstance = new DefaultLocationManager {
                    Loop = false
                };
                return;
            }
        }