/// <summary> /// GPS Update /// </summary> void Update() { if (Running) { if (!useFakeLocation) { Coordinate = new GeoCoordinate(Input.location.lastData.latitude, Input.location.lastData.longitude); } if (textLat != null) { textLat.text = Coordinate.latitude.ToString(); } if (textLong != null) { textLong.text = Coordinate.longitude.ToString(); } if (debugLocation) { Debug.Log("GPS | lat: " + Input.location.lastData.latitude.ToString()); Debug.Log("GPS | long: " + Input.location.lastData.longitude.ToString()); Debug.Log("Compass |" + Input.compass.trueHeading); Debug.Log("Distance: " + GeoCoordinate.DistanceBetweenGeoCoordinates(Coordinate, LastCoordinate)); } } }