Exemplo n.º 1
0
 private void Reset()
 {
     if (trueNorthFinder == null)
     {
         trueNorthFinder = GameObject.FindObjectOfType <pLab_ARTrueNorthFinder>();
     }
 }
Exemplo n.º 2
0
    private void Reset()
    {
        if (arTrueNorthFinder == null)
        {
            arTrueNorthFinder = GameObject.FindObjectOfType <pLab_ARTrueNorthFinder>();
        }

        if (arCamera == null)
        {
            arCamera = this.GetComponentInChildren <Camera>();
        }

        if (deviceElevationEstimater == null)
        {
            deviceElevationEstimater = GameObject.FindObjectOfType <pLab_ARDeviceElevationEstimater>();
        }

        if (locationProvider == null)
        {
            locationProvider = GameObject.FindObjectOfType <pLab_LocationProvider>();
        }
    }