You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
mapbox-sdk/Unity/Location/AbstractLocationProvider.cs

29 lines
568 B

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);
}
}
}