[TASK] Initial commit with basic product setup
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
namespace Mapbox.Unity.Utilities
|
||||
{
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
[RequireComponent(typeof(Button))]
|
||||
public class TelemetryConfigurationButton : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
bool _booleanValue;
|
||||
|
||||
protected virtual void Awake()
|
||||
{
|
||||
GetComponent<Button>().onClick.AddListener(SetPlayerPref);
|
||||
}
|
||||
|
||||
void SetPlayerPref()
|
||||
{
|
||||
MapboxAccess.Instance.SetLocationCollectionState(_booleanValue);
|
||||
PlayerPrefs.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user