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.
|
|
|
|
namespace Mapbox.Unity.Telemetry
|
|
|
|
|
{
|
|
|
|
|
public static class TelemetryFactory
|
|
|
|
|
{
|
|
|
|
|
public static ITelemetryLibrary GetTelemetryInstance()
|
|
|
|
|
{
|
|
|
|
|
#if UNITY_EDITOR
|
|
|
|
|
return TelemetryEditor.Instance;
|
|
|
|
|
#elif UNITY_IOS
|
|
|
|
|
return TelemetryIos.Instance;
|
|
|
|
|
#elif UNITY_ANDROID
|
|
|
|
|
return TelemetryAndroid.Instance;
|
|
|
|
|
#elif UNITY_WEBGL
|
|
|
|
|
return TelemetryWebgl.Instance;
|
|
|
|
|
#else
|
|
|
|
|
return TelemetryFallback.Instance;
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|