[TASK] Initial commit with basic product setup
This commit is contained in:
24
Assets/Mapbox SDK/Mapbox/Examples/Scripts/PoiMarkerHelper.cs
Normal file
24
Assets/Mapbox SDK/Mapbox/Examples/Scripts/PoiMarkerHelper.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
namespace Mapbox.Examples
|
||||
{
|
||||
using UnityEngine;
|
||||
using Mapbox.Unity.MeshGeneration.Interfaces;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class PoiMarkerHelper : MonoBehaviour, IFeaturePropertySettable
|
||||
{
|
||||
Dictionary<string, object> _props;
|
||||
|
||||
public void Set(Dictionary<string, object> props)
|
||||
{
|
||||
_props = props;
|
||||
}
|
||||
|
||||
void OnMouseUpAsButton()
|
||||
{
|
||||
foreach (var prop in _props)
|
||||
{
|
||||
Debug.Log(prop.Key + ":" + prop.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user