示例#1
0
        // Starts the recording
        private void StartRecording()
        {
            MenuObject.SetActive(false);
            PoseteacherMain main = MainObject.GetComponent <PoseteacherMain>();

            main.StartRecordingMode(false);
            RecordElements.SetActive(true);
        }
        // Starts a step
        // TODO: consider one function in PoseteacherMain instead of a list of methods that have to be called (move responsibility)
        public void StartStep(int stepid)
        {
            CurrentStepOrCoreo = stepid;
            CurrentBlock       = 0;
            MenuObject.SetActive(false);
            CoreographyHolder.SetActive(false);
            TrainingHolder.SetActive(true);
            PoseteacherMain main = MainObject.GetComponent <PoseteacherMain>();

            main.ShowTeacher();
            main.SetIsChoreography(false);
            main.ActivateIndicators();
        }
        // Starts a coreography
        // TODO: consider one function in PoseteacherMain instead of a list of methods that have to be called (move responsibility)
        public void StartCoreography(int coreoid)
        {
            CurrentStepOrCoreo = coreoid;
            CurrentBlock       = 0;
            MenuObject.SetActive(false);
            TrainingHolder.SetActive(false);
            CoreographyHolder.SetActive(true);
            PoseteacherMain main = MainObject.GetComponent <PoseteacherMain>();

            main.ShowTeacher();
            main.SetIsChoreography(true);
            main.ActivateIndicators();
            main.ResetTotalScore();
            main.StartRecordingMode(true); // These main calls would probably be better of in a single call when next refactored...
            main.pauseTeacher = false;
        }
 // Start is called before the first frame update
 void Start()
 {
     poseteacher = MainObject.GetComponent <PoseteacherMain>();
     // TODO persistency
 }