namespace Mapbox.Unity.Location
{
using System;
using UnityEngine;
public abstract class AbstractLocationProvider : MonoBehaviour, ILocationProvider
{
protected Location _currentLocation;
///
/// Gets the last known location.
///
/// The current location.
public Location CurrentLocation
{
get
{
return _currentLocation;
}
}
public event Action OnLocationUpdated = delegate { };
protected virtual void SendLocation(Location location)
{
OnLocationUpdated(location);
}
}
}