示例#1
0
    private void Reset()
    {
        if (arCamera == null)
        {
            arCamera = this.GetComponentInChildren <Camera>();
        }

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

        if (headingProvider == null)
        {
            headingProvider = GameObject.FindObjectOfType <pLab_HeadingProvider>();
        }
    }
示例#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>();
        }
    }