IEnumerator InitiateResetOfSRs() { gamePlayManager.StartPhaseSix(); kidLeonie.SetMyMood(MoodIndicator.Bad); kidLeonie.StopLookAtSomeone(); kidLeonie.StopSittingIdleLookAroundAnything(); kidLeonie.studentAnimation.ResetAllAnim(); kidLeonie.StopMyRandomLookingAnimations(); kidLeonie.InitiateGoToSpot(leoniePosAtCubbyBox, 2.5f); kidLeonie.TurnToPlayerOrObject(true, leonieCubbyBoxPos, 5f); kidLeonie.chairPoint.gameObject.GetComponent <ChairDetails>().ShowStudyMaterial(StudyMaterial.WorkSheet, false); kidLeonie.SetMyRightHandStudyMaterialsVisibilty(StudyMaterial.WorkSheet, false); kidLeonie.SetMyRightHandStudyMaterialsVisibilty(StudyMaterial.RippedPaper, false); kidLeonie.SetMyLeftHandStudyMaterialsVisibilty(StudyMaterial.RippedPaper, false); GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement>().TeleportPlayer(teacherPosAtCubbyBox); GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement>().LookToPlace(true, kidLeonie.gameObject.transform); Debug.Log("Leonie started to walk to her cubby box"); foreach (StudentAction sa in gamePlayManager.GetComponent <MainObjectsManager>().studentsAtTable2) { sa.StopLookAtSomeone(); sa.StopSittingIdleLookAroundAnything(); // stop the initial intro animations for all kids sa.StopMyRandomLookingAnimations(); sa.StartLookBetweenTwoPeopoleRoutine(GameObject.FindGameObjectWithTag("Player").transform, kidLeonie.gameObject.transform, 2f, 4f); yield return(new WaitForSeconds(Random.Range(0.1f, 0.25f))); } GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement>().LookToPlayer(true, kidLeonie.gameObject.transform); yield return(new WaitForSeconds(1f)); }