IEnumerator Start() { // Debug.Log("------------------Start : "); waitingGPS.SetActive(false); worldRoot = GameObject.Find("worldRoot"); rSolver = worldRoot.GetComponent <rotationSolver>(); heading = 0; // First, check if user has location service enabled if (!Input.location.isEnabledByUser) { yield break; } do //Start Gps { GPS.Start(); yield return(interval); }while (!GPS.IsEnabledByUser); updateDisplay = true; }
// Use this for initialization void Start() { worldRoot = GameObject.Find("worldRoot"); rSolver = worldRoot.GetComponent <rotationSolver>(); }