void Update() { if (DistanceText) { var d = ForegroundPositionService.Instance.Position.GetDistanceFrom(Data.Coordinates); DistanceText.text = StringFormatter.FormatDistance(d); } }
protected virtual void Update() { if (Distance && m_mapAnnotation != null) { var d = ForegroundPositionService.Instance.Position.GetDistanceFrom(m_mapAnnotation.Location.Coordinates); Distance.text = StringFormatter.FormatDistance(d); } }