private void Start() { Transform MenuHolderTr = MenuObject.transform.Find("NearMenu"); menus.Add(Menus.TITLE, MenuHolderTr.Find("TitleMenu").gameObject); menus.Add(Menus.DANCE, MenuHolderTr.Find("DanceMenu").gameObject); menus.Add(Menus.COURSES, MenuHolderTr.Find("CourseMenu").gameObject); menus.Add(Menus.FREEPLAY, MenuHolderTr.Find("SpecCourseMenu").gameObject); menus.Add(Menus.SPECCOURSE, MenuHolderTr.Find("SpecCourseMenu").gameObject); menus.Add(Menus.SETTINGS, MenuHolderTr.Find("SettingsMenu").gameObject); menus.Add(Menus.AVATARSETTINGS, MenuObject.transform.Find("AvatarSettings").gameObject); menus.Add(Menus.DIFFICULTYSETTINGS, MenuHolderTr.Find("DifficultySettingsMenu").gameObject); menus.Add(Menus.FEEDSETTINGS, MenuHolderTr.Find("PosefeedSettingsMenu").gameObject); menus.Add(Menus.RECORDMENU, MenuHolderTr.Find("RecordMenu").gameObject); menus.Add(Menus.FEEDBACKSETTINGS, MenuHolderTr.Find("FeedbackDisplaySettingsMenu").gameObject); CurrentMenu = Menus.TITLE; courseMenuHelper = MenuObject.transform.Find("CourseMenuHelper").gameObject.GetComponent <CourseMenuHelper>(); courseMenuHelper.LoadAllCourseInfos(); courseMenuHelper.GenerateCoursesMenu(menus[Menus.COURSES].transform.Find("CourseMenuButtonCollection").gameObject); TitleText = MenuObject.transform.Find("TitleBarHolder").Find("TitleBar").Find("Title").gameObject.GetComponent <TextMeshPro>(); SetTitleBarText(); }
public void CoreoEnded() { // Show CoreoEndScreen with proper data StopRecordingMode(); EndCoreoScreen.SetActive(true); CoreoEndScreen endScreenHelper = EndCoreoScreen.GetComponent <CoreoEndScreen>(); CourseMenuHelper courseHelper = CourseHelper.GetComponent <CourseMenuHelper>(); endScreenHelper.SetCoreoName(courseHelper.CurrentStepName()); endScreenHelper.SetScore((int)similarityTotalScore, TeacherPoseInputGetter.TotalFilePoseNumber); }