This commit is contained in:
runette committed 2024-04-22 15:52:51 +01:00
commit e0afef912e
1285 files changed
+83219

No files matched your search

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