public YxLocationManager() { Debug.Log("默认Gps"); GpsInstance = new DefaultLocationManager { Loop = false }; }
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; } }