IEnumerator UpdateState() { while (true) { if (fls != null && fls.IsLocationServiceEnabled) { text.text = "SetToStart"; } else { text.text = "NotSetToStart"; } if (fls != null && fls.IsLocationServiceRunning()) { text.text = text.text + " and Running"; } else { text.text = text.text + " and NotRunning"; } yield return(new WaitForSeconds(0.5f)); } }