33 lines
530 B
C#
33 lines
530 B
C#
using ARLocation;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class LocProviderManager : MonoBehaviour
|
|
{
|
|
#if PLATFORM_ANDROID
|
|
|
|
public static bool useRTK = true;
|
|
|
|
void Start()
|
|
{
|
|
//RTKDev.RequestPermissions();
|
|
RTKDev.EnsureInstance();
|
|
}
|
|
|
|
|
|
|
|
|
|
public static AbstractLocationProvider GetProvider()
|
|
{
|
|
if (useRTK == true)
|
|
return new RTKLocationProvider();
|
|
else
|
|
return new UnityLocationProvider();
|
|
|
|
|
|
}
|
|
#endif
|
|
|
|
}
|