[TASK] Initial commit with basic product setup

This commit is contained in:
2019-08-18 13:50:14 +02:00
commit 01a66a8e1f
2548 changed files with 167528 additions and 0 deletions

View File

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