This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
ARPlusSystem/ARPlusSystem-250418/Assets/Scripts/ARPlus/LocProviderManager.cs

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
}