//tutorial for physics orb, companion tells how to use it, waits for action (shooting red orb) private IEnumerator Introduction() { float delay = 1.0f; companion.SetIdle(false); yield return(new WaitForSeconds(1.0f)); while (companion.IsMoving()) { yield return(new WaitForSeconds(1.0f)); } companion.StartSpeaking(audioClips[0]); yield return(new WaitForSeconds(audioClips[0].length + delay)); Vector3 orbPosition = companion.transform.position + companion.transform.forward; orbPosition.y = 22.5f; physicsOrb.transform.position = orbPosition; physicsOrb.SetActive(true); while (!physicsOrb.taken) { yield return(new WaitForSeconds(1.0f)); } companion.StartSpeaking(audioClips[1]); companion.SetAutoFollow(true); companion.SetIdle(true); yield return(null); }