IEnumerator InteractRoutine() { m_elephantMovement.allowToMove = false; m_cameraController.EnableSpectatorCam(transform, false); yield return(new WaitForSecondsRealtime(1)); m_dialogSystem.StartDialog(m_message, Speaker.player); while (m_dialogSystem.IsDialogInProgress()) { yield return(new WaitForSecondsRealtime(0.5f)); } m_elephantMovement.allowToMove = true; m_cameraController.EnableNormalCam(); }