// Start is called before the first frame update
 void Start()
 {
     locationProvider    = ARLocationProvider.Instance;
     arLocationManager   = ARLocationManager.Instance;
     arLocationRoot      = arLocationManager.gameObject.transform;
     mainCameraTransform = arLocationManager.MainCamera.transform;
     locationProvider.OnLocationUpdatedEvent(locationUpdatedHandler);
     locationProvider.OnProviderRestartEvent(ProviderRestarted);
 }
Esempio n. 2
0
    public void Start()
    {
        locationProvider    = ARLocationProvider.Instance;
        arLocationManager   = ARLocationManager.Instance;
        arLocationRoot      = arLocationManager.gameObject.transform;
        mainCameraTransform = arLocationManager.MainCamera.transform;
        locationProvider.OnLocationUpdatedEvent(locationUpdatedHandler);
        locationProvider.OnProviderRestartEvent(ProviderRestarted);
        csv          = GetComponent <CSV>();
        delaunayMesh = GetComponent <DelaunayMesh>();

        if (locationProvider == null)
        {
            Debug.LogError("[AR+GPS][PlaceAtLocation]: LocationProvider GameObject or Component not found.");
            return;
        }
    }