public IEnumerator GuidePlayer() { while (destination != null) { if (Vector3.Distance(player.transform.position, destination.transform.position) < DISTANCE) { StartCoroutine(dh.DisplayText(directions.arrived, true)); } else { StartCoroutine(dh.DisplayText(generateDirection(), true)); } yield return(new WaitForSeconds(0)); } pickedUp = true; dh.deactivateTextBubble(); }